changeset 30789:d0b1d60bab20

Fix manual reset behavior of Win32 events. Events have a ¡Èreset¡É member that specify if they flag is automatically set back on read/wait. However, this was populated by bManualReset, so the flag was inverted and once an event was set, it would forever be counted as so. Fixed by inverting the flag.
author sesse
date Thu, 04 Mar 2010 15:28:02 +0000
parents ea3ba0e77acf
children 9f30c9cb599b
files loader/win32.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/loader/win32.c	Thu Mar 04 15:23:52 2010 +0000
+++ b/loader/win32.c	Thu Mar 04 15:28:02 2010 +0000
@@ -736,7 +736,7 @@
     mlist->pm=pm;
     mlist->pc=pc;
     mlist->state=bInitialState;
-    mlist->reset=bManualReset;
+    mlist->reset=!bManualReset;
     if(name)
 	strncpy(mlist->name, name, 127);
     else