From e45cfaf9e4e0f40c26f6aaccb6bd58ec18136928 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 7 Nov 2002 18:50:08 +0000 Subject: [PATCH] * fhandler_serial.cc (fhandler_serial::ioctl): Fix typo. --- winsup/cygwin/fhandler_serial.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc index 2c8c27f5d..fd7abb808 100644 --- a/winsup/cygwin/fhandler_serial.cc +++ b/winsup/cygwin/fhandler_serial.cc @@ -388,7 +388,7 @@ fhandler_serial::ioctl (unsigned int cmd, void *buffer) DWORD ev; COMSTAT st; - if (ClearCommError (get_handle (), &ev, &st)) + if (!ClearCommError (get_handle (), &ev, &st)) { __seterrno (); res = -1;