From 287468828114639ec7d4eecf355e8803b7f71a1a Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Thu, 10 Mar 2022 20:17:01 -0500 Subject: [PATCH] Set some error flags for win32 (cherry picked from commit afaff022d738e1d0dbd23b021c43d540839ba65f) --- libs/kiplatform/msw/app.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/kiplatform/msw/app.cpp b/libs/kiplatform/msw/app.cpp index a877a9011d..9bfa09394c 100644 --- a/libs/kiplatform/msw/app.cpp +++ b/libs/kiplatform/msw/app.cpp @@ -28,6 +28,7 @@ #include #include #include +#include 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; }