From 783747919d1180bbca4b29a3b3bea27633adae11 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 7 Nov 2002 18:47:21 +0000 Subject: [PATCH] * fhandler_serial.cc (fhandler_serial::ioctl): Fix typo. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/fhandler_serial.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index ed345d0f6..95735e1f0 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2002-11-07 Christopher Faylor + + * fhandler_serial.cc (fhandler_serial::ioctl): Fix typo. + 2002-11-07 Christopher January * include/cygwin/fs.h: New file. 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;