aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/win/pipe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/win/pipe.c b/src/win/pipe.c
index 5a324bb0..76ea169e 100644
--- a/src/win/pipe.c
+++ b/src/win/pipe.c
@@ -1983,6 +1983,7 @@ static int uv__pipe_read_data(uv_loop_t* loop,
} else {
if (max_bytes > bytes_available)
max_bytes = bytes_available;
+ *bytes_read = 0;
if (max_bytes == 0 || ReadFile(handle->handle, buf.base, max_bytes, bytes_read, NULL))
r = ERROR_SUCCESS;
else