ws2_32: Fix broadcast address calculation.

This commit is contained in:
Juan Lang 2007-10-12 16:15:29 -07:00 committed by Alexandre Julliard
parent a10a8eb134
commit 17248108d4

View file

@ -2164,7 +2164,7 @@ INT WINAPI WSAIoctl(SOCKET s,
addr = inet_addr(ptr->IpAddressList.IpAddress.String);
mask = inet_addr(ptr->IpAddressList.IpMask.String);
bcast = addr | (addr & !mask);
bcast = addr | ~mask;
intArray->iiAddress.AddressIn.sin_family = AF_INET;
intArray->iiAddress.AddressIn.sin_port = 0;
intArray->iiAddress.AddressIn.sin_addr.WS_s_addr =