- 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 committed by drfrag
parent d85fb785eb
commit 52b8c02fdf

View file

@ -1123,7 +1123,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)
{