From 3c43a022aff902115f86cec3381ce6e5bd57cb93 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Tue, 7 Jan 2014 23:07:12 +1100 Subject: 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. --- player/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3