w32: don't disable the error reporting dialog

Windows users expect this when a program crashes. Without it, the
program just disappears. Also change the SetErrorMode call to use macros
instead of a hardcoded constant.
This commit is contained in:
James Ross-Gowan 2014-01-07 23:07:12 +11:00 committed by wm4
parent 1e73da47da
commit c3bcc12a3c
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv)
#if defined(__MINGW32__) || defined(__CYGWIN__) #if defined(__MINGW32__) || defined(__CYGWIN__)
// stop Windows from showing all kinds of annoying error dialogs // stop Windows from showing all kinds of annoying error dialogs
SetErrorMode(0x8003); SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX);
#endif #endif
terminal_init(); terminal_init();