diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 2057eefbbde..de9ea97b7d8 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -729,7 +729,7 @@ static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, *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