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:
sesse 2010-03-04 15:23:52 +00:00
parent b10a6917f4
commit 84bcc5642a
1 changed files with 2 additions and 2 deletions

View File

@ -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)