mirror of https://github.com/mpv-player/mpv
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:
parent
1e73da47da
commit
c3bcc12a3c
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue