Browse Source

Set SetErrorMode on Debug build

7.0
Marek Roszko 4 years ago
parent
commit
d3ca857af7
  1. 4
      libs/kiplatform/msw/app.cpp

4
libs/kiplatform/msw/app.cpp

@ -42,8 +42,12 @@ bool KIPLATFORM::APP::Init()
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF );
#endif
#if defined( DEBUG )
// undo wxwidgets trying to hide errors
SetErrorMode( 0 );
#else
SetErrorMode( SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX );
#endif
#if defined( _MSC_VER )
// ensure the WER crash report dialog always appears

Loading…
Cancel
Save