mirror of https://github.com/mpv-player/mpv
Fix return values of WaitForSingleObject when checking an event.
These were simply inverted compared to what they should be. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30830 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b10a6917f4
commit
84bcc5642a
|
@ -817,8 +817,8 @@ static void* WINAPI expWaitForSingleObject(void* object, int duration)
|
|||
switch(ml->type) {
|
||||
case 0: /* Event */
|
||||
if (duration == 0) { /* Check Only */
|
||||
if (ml->state == 1) ret = WAIT_FAILED;
|
||||
else ret = WAIT_OBJECT_0;
|
||||
if (ml->state == 1) ret = WAIT_OBJECT_0;
|
||||
else ret = WAIT_FAILED;
|
||||
}
|
||||
if (duration == -1) { /* INFINITE */
|
||||
if (ml->state == 0)
|
||||
|
|
Loading…
Reference in New Issue