ws2_32: Fix FreeBSD compiling issue on ipx address structure.

This commit is contained in:
Bruno Jesus 2014-01-05 16:40:32 -02:00 committed by Alexandre Julliard
parent b461fa4468
commit 281f69bccf
1 changed files with 3 additions and 1 deletions

View File

@ -1473,7 +1473,9 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
{
static const struct sockaddr_ipx emptyAddr;
struct sockaddr_ipx *ipx = (struct sockaddr_ipx*) uaddr;
return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
return ipx->sipx_port
|| memcmp(&ipx->sipx_network, &emptyAddr.sipx_network, sizeof(emptyAddr.sipx_network))
|| memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
}
#endif
case AF_INET6: