diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/win/pipe.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/win/pipe.c b/src/win/pipe.c index 15e0fe6b..5a324bb0 100644 --- a/src/win/pipe.c +++ b/src/win/pipe.c @@ -2004,7 +2004,9 @@ static int uv__pipe_read_data(uv_loop_t* loop, if (r == ERROR_IO_PENDING) { r = CancelIoEx(handle->handle, &req->u.io.overlapped); assert(r || GetLastError() == ERROR_NOT_FOUND); - if (!GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) { + if (GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) { + r = ERROR_SUCCESS; + } else { r = GetLastError(); *bytes_read = 0; } |