Fixed list of arguments in log-file.

This commit is contained in:
2022-02-25 14:41:35 +03:00
parent 19660bb346
commit 3cd3faea01

View File

@@ -146,8 +146,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmd
int nArgs = 0; int nArgs = 0;
LPWSTR* szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs); LPWSTR* szArglist = CommandLineToArgvW(GetCommandLineW(), &nArgs);
diag_log(L"Arguments:", nArgs); diag_log(L"Arguments:", nArgs - 1);
for (int i = 0; i < nArgs; i++) for (int i = 1; i < nArgs; i++)
{ {
diag_log(L"Argument", i, L":", szArglist[i]); diag_log(L"Argument", i, L":", szArglist[i]);
} }