Skip to content

Commit f00d4b6

Browse files
authored
win,pipe: fix missing assignment to success (libuv#4515)
1 parent 5cbc82e commit f00d4b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/win/pipe.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2004,7 +2004,9 @@ static int uv__pipe_read_data(uv_loop_t* loop,
20042004
if (r == ERROR_IO_PENDING) {
20052005
r = CancelIoEx(handle->handle, &req->u.io.overlapped);
20062006
assert(r || GetLastError() == ERROR_NOT_FOUND);
2007-
if (!GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) {
2007+
if (GetOverlappedResult(handle->handle, &req->u.io.overlapped, bytes_read, TRUE)) {
2008+
r = ERROR_SUCCESS;
2009+
} else {
20082010
r = GetLastError();
20092011
*bytes_read = 0;
20102012
}

0 commit comments

Comments
 (0)