summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/main.c2
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();