2004-06-22 Dick Porter <dick@ximian.com>
authorDick Porter <dick@acm.org>
Tue, 22 Jun 2004 19:34:47 +0000 (19:34 -0000)
committerDick Porter <dick@acm.org>
Tue, 22 Jun 2004 19:34:47 +0000 (19:34 -0000)
* events.c (CreateEvent): When creating an auto-reset event that
is initially owned, make sure the set count starts at 1.

svn path=/trunk/mono/; revision=30137

mono/io-layer/ChangeLog
mono/io-layer/events.c

index 7facae1da589b8b08a357663725e6649155e585b..577134c13158c5c18077679b1aa64129ea8d56b0 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-22  Dick Porter  <dick@ximian.com>
+
+       * events.c (CreateEvent): When creating an auto-reset event that
+       is initially owned, make sure the set count starts at 1.
+
 2004-06-18  Dick Porter  <dick@ximian.com>
 
        * event-private.h:
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);
        }