From 3ea789caea1ac76b0d11eda23a45750baee257aa Mon Sep 17 00:00:00 2001 From: jofon <70416966+jofon@users.noreply.github.com> Date: Sat, 22 Jul 2023 14:57:15 +0100 Subject: [PATCH] Fix error message of openning file with '=' as end of file name Ignore '=' at the end of a file name. Fix #13344, close #13917 --- PowerEditor/src/winmain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/winmain.cpp b/PowerEditor/src/winmain.cpp index 48bf90d7d..93bddd3ae 100644 --- a/PowerEditor/src/winmain.cpp +++ b/PowerEditor/src/winmain.cpp @@ -111,7 +111,7 @@ void parseCommandLine(const TCHAR* commandLine, ParamVector& paramVector) { case '\"': //quoted filename, ignore any following whitespace { - if (!isStringInArg && i > 0 && cmdLinePtr[i-1] == '=') + if (!isStringInArg && !isInFile && i > 0 && cmdLinePtr[i-1] == '=') { isStringInArg = true; }