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

This commit is contained in:
Don HO 2017-07-28 10:30:42 +02:00
parent afb3889ffb
commit ecc9258d45

View File

@ -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)
{