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 13ce15b8d2693515e2a564b5da6cdb74c3c0c34c..9ae22f54dfa1d40f05a9b73b070f772f588e8754 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;