diff --git a/src/win32/i_crash.cpp b/src/win32/i_crash.cpp index 4603fb4f9..d4804ec0e 100644 --- a/src/win32/i_crash.cpp +++ b/src/win32/i_crash.cpp @@ -284,6 +284,7 @@ struct MiniDumpThreadData // EXTERNAL FUNCTION PROTOTYPES -------------------------------------------- // PUBLIC FUNCTION PROTOTYPES ---------------------------------------------- +void I_FlushBufferedConsoleStuff(); // PRIVATE FUNCTION PROTOTYPES --------------------------------------------- @@ -679,6 +680,7 @@ void CreateCrashLog (char *custominfo, DWORD customsize, HWND richlog) } if (richlog != NULL) { + I_FlushBufferedConsoleStuff(); AddFile (WriteLogFile(richlog), "log.rtf"); } CloseHandle (DbgProcess); diff --git a/src/win32/i_main.cpp b/src/win32/i_main.cpp index 7a804dd81..52e78c3bc 100644 --- a/src/win32/i_main.cpp +++ b/src/win32/i_main.cpp @@ -681,7 +681,6 @@ void RestoreConView() ConWindowHidden = false; ShowWindow (GameTitleWindow, SW_SHOW); I_ShutdownInput (); // Make sure the mouse pointer is available. - I_FlushBufferedConsoleStuff(); // Make sure the progress bar isn't visible. if (StartScreen != NULL) { @@ -1029,6 +1028,7 @@ void DoMain (HINSTANCE hInstance) { I_ShutdownGraphics (); RestoreConView (); + I_FlushBufferedConsoleStuff(); if (error.GetMessage ()) { if (!batchrun)