Ooops, gen-65 is broken, not test-65.
[mono.git] / mono / io-layer / events.c
index efb766f20ea40b7d0c9c74a2cab5f190ce7f344d..c99175dd34224c2e8c9cae062487d8fdd5041036 100644 (file)
@@ -149,6 +149,10 @@ gpointer CreateEvent(WapiSecurityAttributes *security G_GNUC_UNUSED, gboolean ma
        event_handle->set_count = 0;
 
        if(initial==TRUE) {
+               if (manual == FALSE) {
+                       event_handle->set_count = 1;
+               }
+               
                _wapi_handle_set_signal_state (handle, TRUE, FALSE);
        }