Skip to content

Commit 23a1a4f

Browse files
committed
Fix _errLogPath argument not working
1 parent 58107ff commit 23a1a4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/winmain.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,6 +1369,10 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR lpszCmdLine, int)
13691369
wstring errLogPath;
13701370
if (getParamValFromString(FLAG_ERRLOGPATH, params, errLogPath))
13711371
{
1372+
if (errLogPath.length() >= 2 && (errLogPath.front() == '"' && errLogPath.back() == '"')) ^ M
1373+
{
1374+
errLogPath = errLogPath.substr(1, errLogPath.length() - 2); ^ M
1375+
}
13721376
securityGuard.setErrLogPath(errLogPath);
13731377
}
13741378

0 commit comments

Comments
 (0)