mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
Use SetErrorMode so Windows will not show all kinds of error dialogs
we do not want. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28497 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ab3f56987f
commit
a93f56abeb
@ -2592,6 +2592,8 @@ int gui_no_filename=0;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
#if defined(__MINGW32__) || defined(__CYGWIN__)
|
||||||
|
// stop Windows from showing all kinds of annoying error dialogs
|
||||||
|
SetErrorMode(0x8003);
|
||||||
// request 1ms timer resolution
|
// request 1ms timer resolution
|
||||||
timeBeginPeriod(1);
|
timeBeginPeriod(1);
|
||||||
if(proc_priority){
|
if(proc_priority){
|
||||||
|
Loading…
Reference in New Issue
Block a user