From c3bcc12a3c1e7a66cdc957762b1a5f8111818a82 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(-) (limited to 'player/main.c') 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(); -- cgit v1.2.3