mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-27 22:42:57 +00:00
- fixed: In case of a crash the buffered console output was not dumped to the rich edit control so it never got into the crash log.
This commit is contained in:
parent
d43ea33031
commit
fc25a74a03
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue