win: minor error handle fix to uv_pipe_write_impl
This commit ensures a proper win32 error code is returned from uv_pipe_write_impl in case of failure.
This commit is contained in:
parent
cd67e10ece
commit
0943d3cb33
@ -1174,6 +1174,7 @@ static int uv_pipe_write_impl(uv_loop_t* loop,
|
||||
NULL);
|
||||
|
||||
if (!result) {
|
||||
err = GetLastError();
|
||||
return err;
|
||||
} else {
|
||||
/* Request completed immediately. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user