windows: return libuv error codes in uv_poll_init()

Closes #1518
This commit is contained in:
cjihrig 2014-10-08 10:10:26 -04:00 committed by Saúl Ibarra Corretgé
parent 471e844793
commit 416b7335fc

View File

@ -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 */