diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-01-07 23:07:12 +1100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-27 10:04:29 +0100 |
commit | c3bcc12a3c1e7a66cdc957762b1a5f8111818a82 (patch) | |
tree | 7582047ab64f687b6cd86c0561f09770e45bfad3 /player | |
parent | 1e73da47dab00554028452dbb882d6885a454ab8 (diff) | |
download | mpv-c3bcc12a3c1e7a66cdc957762b1a5f8111818a82.tar.bz2 mpv-c3bcc12a3c1e7a66cdc957762b1a5f8111818a82.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c index 868b97b49a..5b715d1f88 100644 --- a/player/main.c +++ b/player/main.c @@ -261,7 +261,7 @@ static void osdep_preinit(int *p_argc, char ***p_argv) #if defined(__MINGW32__) || defined(__CYGWIN__) // stop Windows from showing all kinds of annoying error dialogs - SetErrorMode(0x8003); + SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOOPENFILEERRORBOX); #endif terminal_init(); |