We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cbc82e commit f00d4b6Copy full SHA for f00d4b6
src/win/pipe.c
@@ -2004,7 +2004,9 @@ static int uv__pipe_read_data(uv_loop_t* loop,
2004
if (r == ERROR_IO_PENDING) {
2005
r = CancelIoEx(handle->handle, &req->u.io.overlapped);
2006
assert(r || GetLastError() == ERROR_NOT_FOUND);
2007
- if (!GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) {
+ if (GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) {
2008
+ r = ERROR_SUCCESS;
2009
+ } else {
2010
r = GetLastError();
2011
*bytes_read = 0;
2012
}
0 commit comments