summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorsesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-04 15:23:52 +0000
committersesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-04 15:23:52 +0000
commit84bcc5642a5f58807493b776b565c28679870c4e (patch)
treea3260d7dc4d82b1fbe400f380f3eaad4ea1d738f /loader
parentb10a6917f456125491411f0fc13dd3efae455df8 (diff)
downloadmpv-84bcc5642a5f58807493b776b565c28679870c4e.tar.bz2
mpv-84bcc5642a5f58807493b776b565c28679870c4e.tar.xz
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
Diffstat (limited to 'loader')
-rw-r--r--loader/win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/win32.c b/loader/win32.c
index f560ffdfb4..b69cf103f1 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -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)