- use the Unicode version of GetCommandLine for the crash log.

This commit is contained in:
Christoph Oelckers 2019-04-04 17:49:53 +02:00
parent 2a6cdc7a6a
commit 0153c2aefa

View file

@ -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)
{