No subject


Tue Aug 30 15:12:41 CDT 2005


Changelog:
	Wim Lewis <wiml at hhhh.org>
	Clear struct sockaddr_ipx directly instead of just the sipx_zero
	field.

Index: dlls/winsock/socket.c
===================================================================
RCS file: /home/wine/wine/dlls/winsock/socket.c,v
retrieving revision 1.143
diff -u -r1.143 socket.c
--- dlls/winsock/socket.c	12 Dec 2003 04:09:46 -0000	1.143
+++ dlls/winsock/socket.c	2 Jan 2004 08:31:57 -0000
@@ -729,6 +729,7 @@
 
             *uaddrlen=sizeof(struct sockaddr_ipx);
             uipx=malloc(*uaddrlen);
+            memset(&uipx,0,sizeof(uipx));
             uipx->sipx_family=AF_IPX;
             uipx->sipx_port=wsipx->sa_socket;
             /* copy sa_netnum and sa_nodenum to sipx_network and sipx_node
@@ -738,7 +739,6 @@
 #ifdef IPX_FRAME_NONE
             uipx->sipx_type=IPX_FRAME_NONE;
 #endif
-            memset(&uipx->sipx_zero,0,sizeof(uipx->sipx_zero));
             return (const struct sockaddr*)uipx;
         }
 #endif
-- 



More information about the wine-patches mailing list