windows: fix winsock status codes for address errors
- STATUS_TOO_MANY_ADDRESSES now returns WSAEADDRINUSE - STATUS_CONFLICTING_ADDRESSES now returns WSAEADDRNOTAVAIL
This commit is contained in:
parent
0e59136823
commit
f326820f55
@ -166,13 +166,12 @@ int uv_ntstatus_to_winsock_error(NTSTATUS status) {
|
||||
case STATUS_COMMITMENT_LIMIT:
|
||||
case STATUS_WORKING_SET_QUOTA:
|
||||
case STATUS_NO_MEMORY:
|
||||
case STATUS_CONFLICTING_ADDRESSES:
|
||||
case STATUS_QUOTA_EXCEEDED:
|
||||
case STATUS_TOO_MANY_PAGING_FILES:
|
||||
case STATUS_REMOTE_RESOURCES:
|
||||
case STATUS_TOO_MANY_ADDRESSES:
|
||||
return WSAENOBUFS;
|
||||
|
||||
case STATUS_TOO_MANY_ADDRESSES:
|
||||
case STATUS_SHARING_VIOLATION:
|
||||
case STATUS_ADDRESS_ALREADY_EXISTS:
|
||||
return WSAEADDRINUSE;
|
||||
@ -241,6 +240,7 @@ int uv_ntstatus_to_winsock_error(NTSTATUS status) {
|
||||
case STATUS_PIPE_DISCONNECTED:
|
||||
return WSAESHUTDOWN;
|
||||
|
||||
case STATUS_CONFLICTING_ADDRESSES:
|
||||
case STATUS_INVALID_ADDRESS:
|
||||
case STATUS_INVALID_ADDRESS_COMPONENT:
|
||||
return WSAEADDRNOTAVAIL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user