[MPlayer-cvslog] r30830 - trunk/loader/win32.c

sesse subversion at mplayerhq.hu
Thu Mar 4 16:23:52 CET 2010


Author: sesse
Date: Thu Mar  4 16:23:52 2010
New Revision: 30830

Log:
Fix return values of WaitForSingleObject when checking an event.

These were simply inverted compared to what they should be.

Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	Thu Mar  4 15:46:44 2010	(r30829)
+++ trunk/loader/win32.c	Thu Mar  4 16:23:52 2010	(r30830)
@@ -817,8 +817,8 @@ static void* WINAPI expWaitForSingleObje
     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)


More information about the MPlayer-cvslog mailing list