[MPlayer-cvslog] r28497 - trunk/mplayer.c

reimar subversion at mplayerhq.hu
Mon Feb 9 16:43:51 CET 2009


Author: reimar
Date: Mon Feb  9 16:43:51 2009
New Revision: 28497

Log:
Use SetErrorMode so Windows will not show all kinds of error dialogs
we do not want.

Modified:
   trunk/mplayer.c

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Mon Feb  9 15:31:53 2009	(r28496)
+++ trunk/mplayer.c	Mon Feb  9 16:43:51 2009	(r28497)
@@ -2592,6 +2592,8 @@ int gui_no_filename=0;
 #endif
 
 #if defined(__MINGW32__) || defined(__CYGWIN__)
+	// stop Windows from showing all kinds of annoying error dialogs
+	SetErrorMode(0x8003);
 	// request 1ms timer resolution
 	timeBeginPeriod(1);
 	if(proc_priority){



More information about the MPlayer-cvslog mailing list