]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winhandl.c
Fix an EOF-testing goof in winhandl.c.
[PuTTY.git] / windows / winhandl.c
index e5a5e2d541aea5c00848bd8d314fd33a65f50636..cfd6298747e6f1805b087509ff8e56d50931a274 100644 (file)
@@ -533,7 +533,7 @@ void handle_write_eof(struct handle *h)
      * direction!
      */
     assert(h->type == HT_OUTPUT);
-    if (!h->u.o.outgoingeof == EOF_NO) {
+    if (h->u.o.outgoingeof == EOF_NO) {
         h->u.o.outgoingeof = EOF_PENDING;
         handle_try_output(&h->u.o);
     }