From ecc9258d457c329d8d5bb17749670bb909911af9 Mon Sep 17 00:00:00 2001 From: Don HO Date: Fri, 28 Jul 2017 10:30:42 +0200 Subject: [PATCH] Fix the long time bug that non-exist folder to pass via command line is not opened without warning --- PowerEditor/src/NppIO.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 87d156037..15931ae90 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -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) {