diff options
Diffstat (limited to 'deps/uv/src/win/udp.c')
-rw-r--r-- | deps/uv/src/win/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/uv/src/win/udp.c b/deps/uv/src/win/udp.c index 7032b685ded..68ca728aa5c 100644 --- a/deps/uv/src/win/udp.c +++ b/deps/uv/src/win/udp.c @@ -1073,7 +1073,7 @@ int uv__udp_connect(uv_udp_t* handle, err = connect(handle->socket, addr, addrlen); if (err) - return uv_translate_sys_error(err); + return uv_translate_sys_error(WSAGetLastError()); handle->flags |= UV_HANDLE_UDP_CONNECTED; @@ -1089,7 +1089,7 @@ int uv__udp_disconnect(uv_udp_t* handle) { err = connect(handle->socket, &addr, sizeof(addr)); if (err) - return uv_translate_sys_error(err); + return uv_translate_sys_error(WSAGetLastError()); handle->flags &= ~UV_HANDLE_UDP_CONNECTED; return 0; |