mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-26 07:15:21 +02:00
Fix the long time bug that non-exist folder to pass via command line is not opened without warning
This commit is contained in:
parent
afb3889ffb
commit
ecc9258d45
@ -244,6 +244,11 @@ BufferID Notepad_plus::doOpen(const generic_string& fileName, bool isRecursive,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
wsprintf(str2display, TEXT("\"%s\" cannot be opened:\nFolder \"%s\" doesn't exist."), longFileName, longFileDir.c_str());
|
||||||
|
::MessageBox(_pPublicInterface->getHSelf(), str2display, TEXT("Cannot opened"), MB_OK);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isCreateFileSuccessful)
|
if (!isCreateFileSuccessful)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user