Set some error flags for win32
This commit is contained in:
parent
bf5d585e24
commit
afaff022d7
|
@ -28,6 +28,7 @@
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <VersionHelpers.h>
|
#include <VersionHelpers.h>
|
||||||
|
#include <werapi.h>
|
||||||
|
|
||||||
|
|
||||||
bool KIPLATFORM::APP::Init()
|
bool KIPLATFORM::APP::Init()
|
||||||
|
@ -38,6 +39,12 @@ bool KIPLATFORM::APP::Init()
|
||||||
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
|
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
|
||||||
#endif
|
#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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue