* fhandler_serial.cc (fhandler_serial::ioctl): Fix typo.
This commit is contained in:
parent
bffb89c23a
commit
e45cfaf9e4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue