Mercurial > mplayer.hg
changeset 30788:ea3ba0e77acf
Fix return values of WaitForSingleObject when checking an event.
These were simply inverted compared to what they should be.
author | sesse |
---|---|
date | Thu, 04 Mar 2010 15:23:52 +0000 |
parents | e10ba171be06 |
children | d0b1d60bab20 |
files | loader/win32.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/win32.c Thu Mar 04 14:46:44 2010 +0000 +++ b/loader/win32.c Thu Mar 04 15:23:52 2010 +0000 @@ -817,8 +817,8 @@ 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)