WSACleanup fix.
Robert Shearman
rob at codeweavers.com
Tue Nov 29 10:33:49 CST 2005
Rein Klazes wrote:
>--- wine/dlls/winsock/socket.c 2005-11-24 17:00:02.000000000 +0100
>+++ mywine/dlls/winsock/socket.c 2005-11-29 14:58:24.000000000 +0100
>@@ -830,8 +830,10 @@ int WINAPI WSAStartup(WORD wVersionReque
> */
> INT WINAPI WSACleanup(void)
> {
>- if (num_startup)
>+ if (num_startup) {
>+ num_startup = 0;
> return 0;
>+ }
> SetLastError(WSANOTINITIALISED);
> return SOCKET_ERROR;
> }
>
>
Hi,
I don't think the patch is quite correct. Attached is a patch that has
been sitting in my tree for a while.
--
Rob Shearman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wsacleanup.diff
Type: text/x-patch
Size: 650 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051129/075d1c7a/wsacleanup.diff
More information about the wine-patches
mailing list