Commit 4ff3b205 authored by Ove Kaaven's avatar Ove Kaaven Committed by Alexandre Julliard

WSACleanup should set last error to WSANOTINITIALISED if failing

because Winsock was not initialized...
parent 09ee5d0a
......@@ -606,6 +606,7 @@ INT WINAPI WSACleanup(void)
WINSOCK_DeleteIData();
return 0;
}
SetLastError(WSANOTINITIALISED);
return SOCKET_ERROR;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment