* fhandler_serial.cc (fhandler_serial::raw_read): Check for
ERROR_OPERATION_ABORTED rather than ERROR_IO_INCOMPLETE after CancelIo.
This commit is contained in:
parent
96d5b7d17c
commit
df5cda0e93
|
@ -1,3 +1,8 @@
|
|||
2012-05-25 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_serial.cc (fhandler_serial::raw_read): Check for
|
||||
ERROR_OPERATION_ABORTED rather than ERROR_IO_INCOMPLETE after CancelIo.
|
||||
|
||||
2012-05-25 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile
|
||||
|
|
|
@ -128,7 +128,7 @@ fhandler_serial::raw_read (void *ptr, size_t& ulen)
|
|||
CancelIo (get_handle ());
|
||||
if (GetOverlappedResult (get_handle (), &io_status, &n, FALSE))
|
||||
tot = n;
|
||||
else if (GetLastError () != ERROR_IO_INCOMPLETE)
|
||||
else if (GetLastError () != ERROR_OPERATION_ABORTED)
|
||||
goto err;
|
||||
if (tot == 0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue