WSACleanup should set last error to WSANOTINITIALISED if failing

because Winsock was not initialized...
This commit is contained in:
Ove Kaaven 2000-03-04 19:29:42 +00:00 committed by Alexandre Julliard
parent 09ee5d0a56
commit 4ff3b20508
1 changed files with 1 additions and 0 deletions

View File

@ -606,6 +606,7 @@ INT WINAPI WSACleanup(void)
WINSOCK_DeleteIData();
return 0;
}
SetLastError(WSANOTINITIALISED);
return SOCKET_ERROR;
}