Set some error flags for win32

(cherry picked from commit afaff022d7)
This commit is contained in:
Marek Roszko 2022-03-10 20:17:01 -05:00 committed by Mark Roszko
parent 826096790d
commit 2874688281
1 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <strsafe.h>
#include <config.h>
#include <VersionHelpers.h>
#include <werapi.h>
bool KIPLATFORM::APP::Init()
@ -38,6 +39,12 @@ bool KIPLATFORM::APP::Init()
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
#endif
// undo wxwidgets trying to hide errors
SetErrorMode( 0 );
// ensure the WER crash report dialog always appears
WerSetFlags( WER_FAULT_REPORTING_ALWAYS_SHOW_UI );
return true;
}