Mercurial > mplayer.hg
diff loader/registry.c @ 30810:60c9c064d43f
Fix semaphore behavior in WaitForSingleObject.
Two simple bugfixes for semaphores in WaitForSingleObject:
First, semaphore count should be decreased on loading the semaphore, not
increased. The case for duration=0 had this wrong (duration=-1 was fine).
Second, the code for duration=-1 forgot to set the return value, so it
would always return WAIT_FAILED.
author | sesse |
---|---|
date | Sat, 06 Mar 2010 10:07:39 +0000 |
parents | 9fc9d1e788aa |
children | 76a13038105e |