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