Fixed last change.
authorMarcus Brinkmann <mb@g10code.com>
Mon, 16 Jul 2007 17:47:00 +0000 (17:47 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Mon, 16 Jul 2007 17:47:00 +0000 (17:47 +0000)
gpgme/w32-io.c

index 13ce15b..9ae22f5 100644 (file)
@@ -570,10 +570,10 @@ static void
 destroy_writer (struct writer_context_s *c)
 {
     LOCK (c->mutex);
-    ctx->refcount--;
-    if (ctx->refcount != 0)
+    c->refcount--;
+    if (c->refcount != 0)
       {
-       UNLOCK (ctx->mutex);
+       UNLOCK (c->mutex);
        return;
       }
     c->stop_me = 1;