From 13350a3d2905e6e3253b57e9b21ff214d340d42a Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 24 Jul 2022 05:34:26 +0200 Subject: [PATCH] Fix minor error --- PowerEditor/src/NppIO.cpp | 4 +- .../tools/NppShell/codeblocks/NppShell.cbp | 142 ------------------ .../tools/NppShell/project/NppShell.vcxproj | 14 +- 3 files changed, 9 insertions(+), 151 deletions(-) delete mode 100644 PowerEditor/src/tools/NppShell/codeblocks/NppShell.cbp diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 4582ee1fb..0702eb7dd 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -602,7 +602,7 @@ bool Notepad_plus::doSave(BufferID id, const TCHAR * filename, bool isCopy) // it returns an error value that indicates the cause of the failure. // https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx - if (shellExecRes < 32) + if (shellExecRes <= 32) { _nativeLangSpeaker.messageBox("OpenInAdminModeFailed", _pPublicInterface->getHSelf(), @@ -646,7 +646,7 @@ bool Notepad_plus::doSave(BufferID id, const TCHAR * filename, bool isCopy) // it returns an error value that indicates the cause of the failure. // https://msdn.microsoft.com/en-us/library/windows/desktop/bb762153%28v=vs.85%29.aspx - if (shellExecRes < 32) + if (shellExecRes <= 32) { _nativeLangSpeaker.messageBox("OpenInAdminModeFailed", _pPublicInterface->getHSelf(), diff --git a/PowerEditor/src/tools/NppShell/codeblocks/NppShell.cbp b/PowerEditor/src/tools/NppShell/codeblocks/NppShell.cbp deleted file mode 100644 index 4c6bafad8..000000000 --- a/PowerEditor/src/tools/NppShell/codeblocks/NppShell.cbp +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - diff --git a/PowerEditor/src/tools/NppShell/project/NppShell.vcxproj b/PowerEditor/src/tools/NppShell/project/NppShell.vcxproj index b858ee92d..411d84a6e 100644 --- a/PowerEditor/src/tools/NppShell/project/NppShell.vcxproj +++ b/PowerEditor/src/tools/NppShell/project/NppShell.vcxproj @@ -30,40 +30,40 @@ {509B95C6-043E-4389-8351-77BDB042A6F9} NppShell Win32Proj - 10.0.17763.0 + 10.0 DynamicLibrary - v141 + v143 Unicode true DynamicLibrary - v141 + v143 Unicode DynamicLibrary - v141 + v143 Unicode true DynamicLibrary - v141 + v143 Unicode true DynamicLibrary - v141 + v143 Unicode DynamicLibrary - v141 + v143 Unicode