Fix the long time bug that non-exist folder to pass via command line is not opened without warning

pull/3575/head
Don HO 7 years ago
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…
Cancel
Save