WSACleanup should set last error to WSANOTINITIALISED if failing
because Winsock was not initialized...
This commit is contained in:
parent
09ee5d0a56
commit
4ff3b20508
|
@ -606,6 +606,7 @@ INT WINAPI WSACleanup(void)
|
|||
WINSOCK_DeleteIData();
|
||||
return 0;
|
||||
}
|
||||
SetLastError(WSANOTINITIALISED);
|
||||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue