win,pipe: fix incorrect error code returned from uv_pipe_write_impl()

PR-URL: https://github.com/libuv/libuv/pull/1843
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
Bert Belder 2018-05-24 17:11:06 -07:00
parent 5191ab5e93
commit 58dd8d455e
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -1428,7 +1428,7 @@ static int uv_pipe_write_impl(uv_loop_t* loop,
WAIT_OBJECT_0) {
err = GetLastError();
CloseHandle(req->u.io.overlapped.hEvent);
return uv_translate_sys_error(err);
return err;
}
}
CloseHandle(req->u.io.overlapped.hEvent);