https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bb5db143f0e0f744571b99...
commit bb5db143f0e0f744571b996e47f2c2d528855c33 Author: Mark Jansen mark.jansen@reactos.org AuthorDate: Sun May 13 23:22:56 2018 +0200 Commit: Mark Jansen mark.jansen@reactos.org CommitDate: Fri May 18 18:27:36 2018 +0200
[DRWTSN32] Use GetCommandLineW for CommandLineToArgvW. Spotted by Hermès --- base/applications/drwtsn32/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/drwtsn32/main.cpp b/base/applications/drwtsn32/main.cpp index f7cdc3aab0..e67c735006 100644 --- a/base/applications/drwtsn32/main.cpp +++ b/base/applications/drwtsn32/main.cpp @@ -253,7 +253,7 @@ HRESULT WriteMinidump(LPCWSTR LogFilePath, DumpData& data) int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, LPWSTR cmdLine, INT) { int argc; - WCHAR **argv = CommandLineToArgvW(cmdLine, &argc); + WCHAR **argv = CommandLineToArgvW(GetCommandLineW(), &argc);
DWORD pid = 0; WCHAR Filename[50];