From 0153c2aefae2ced57295db7640c459457dd64855 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 4 Apr 2019 17:49:53 +0200 Subject: [PATCH] - use the Unicode version of GetCommandLine for the crash log. --- src/win32/i_main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index 9af8bc4cf..4f42f7593 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -1111,7 +1111,8 @@ void DoomSpecificInfo (char *buffer, size_t bufflen) int i; buffer += mysnprintf (buffer, buffend - buffer, GAMENAME " version %s (%s)", GetVersionString(), GetGitHash()); - buffer += mysnprintf (buffer, buffend - buffer, "\r\nCommand line: %s\r\n", GetCommandLineA()); + FString cmdline(GetCommandLineW()); + buffer += mysnprintf (buffer, buffend - buffer, "\r\nCommand line: %s\r\n", cmdline.GetChars() ); for (i = 0; (arg = Wads.GetWadName (i)) != NULL; ++i) {