diff options
author | James Ross-Gowan <rossymiles@gmail.com> | 2014-01-07 23:07:12 +1100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-01-31 19:07:05 +0100 |
commit | 3c43a022aff902115f86cec3381ce6e5bd57cb93 (patch) | |
tree | a02ab21f306fcc00fbddda2e140cfea196a83350 | |
parent | 02513cd5df18e66b145d7683e9cdfd97319e307d (diff) | |
download | mpv-3c43a022aff902115f86cec3381ce6e5bd57cb93.tar.bz2 mpv-3c43a022aff902115f86cec3381ce6e5bd57cb93.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.
-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 3337ca0bd3..400fab0426 100644 --- a/player/main.c +++ b/player/main.c @@ -260,7 +260,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(); |