From 416b7335fcc089b15eec6221b3d2f8c7108c6ce7 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Wed, 8 Oct 2014 10:10:26 -0400 Subject: [PATCH] windows: return libuv error codes in uv_poll_init() Closes #1518 --- src/win/poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/poll.c b/src/win/poll.c index bf373998..85c31482 100644 --- a/src/win/poll.c +++ b/src/win/poll.c @@ -530,7 +530,7 @@ int uv_poll_init_socket(uv_loop_t* loop, uv_poll_t* handle, SO_PROTOCOL_INFOW, (char*) &protocol_info, &len) != 0) { - return WSAGetLastError(); + return uv_translate_sys_error(WSAGetLastError()); } /* Get the peer socket that is needed to enable fast poll. If the returned */