[PATCH] Fix crash in ws_sockaddr_ws2u

Alexey Spiridonov lesha at netman.ru
Mon Jan 26 23:52:47 CST 2004


This fixes a recent change to the socket code that made it into 20040121.
For instance, the bug causes Half-Life to blow up at the multiplayer LAN
game screen. Can't we test, or at least *proofread* our code?

--- dlls/winsock/socket.c-old 2004-01-25 14:03:41.000000000 -0500
+++ dlls/winsock/socket.c 2004-01-25 14:03:29.000000000 -0500
@@ -729,7 +729,7 @@

*uaddrlen=sizeof(struct sockaddr_ipx);
uipx=malloc(*uaddrlen);
- memset(&uipx,0,sizeof(uipx));
+ 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



More information about the wine-patches mailing list