diff edl.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 c1a3f1bbba26
children
line wrap: on
line diff