@@ -1131,7 +1131,7 @@ int get_serial_cts(const int fd)
if (fd == -1)
return -1;
const HANDLE fh = (HANDLE)_get_osfhandle(fd);
- if (!fh)
+ if (fh == INVALID_HANDLE_VALUE)
DWORD flags;