diff --git a/gpgme/w32-io.c b/gpgme/w32-io.c index 4e2c1c9f..bfa0ad67 100644 --- a/gpgme/w32-io.c +++ b/gpgme/w32-io.c @@ -269,11 +269,11 @@ create_reader (HANDLE fd) static void destroy_reader (struct reader_context_s *c) { - LOCK (c->mutex) + LOCK (c->mutex); c->stop_me = 1; if (c->have_space_ev) SetEvent (c->have_space_ev); - UNLOCK (c->mutex) + UNLOCK (c->mutex); DEBUG1 ("waiting for thread %p termination ...", c->thread_hd ); WaitForSingleObject (c->stopped, INFINITE); @@ -522,11 +522,11 @@ create_writer (HANDLE fd) static void destroy_writer (struct writer_context_s *c) { - LOCK (c->mutex) + LOCK (c->mutex); c->stop_me = 1; if (c->have_data) SetEvent (c->have_data); - UNLOCK (c->mutex) + UNLOCK (c->mutex); DEBUG1 ("waiting for thread %p termination ...", c->thread_hd ); WaitForSingleObject (c->stopped, INFINITE);