mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
iphlpapi: Use Windows rather than Unix values to determine family.
This commit is contained in:
parent
0b4c99cd7d
commit
2b6ab9eb86
@ -723,7 +723,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD
|
||||
SOCKET_ADDRESS *v6addrs = NULL;
|
||||
PMIB_IPFORWARDTABLE routeTable = NULL;
|
||||
|
||||
if (family == AF_INET)
|
||||
if (family == WS_AF_INET)
|
||||
{
|
||||
ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE,
|
||||
GetProcessHeap(), 0);
|
||||
@ -733,9 +733,9 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD
|
||||
num_v4_gateways = count_v4_gateways(index, routeTable);
|
||||
}
|
||||
}
|
||||
else if (family == AF_INET6)
|
||||
else if (family == WS_AF_INET6)
|
||||
ret = v6addressesFromIndex(index, &v6addrs, &num_v6addrs);
|
||||
else if (family == AF_UNSPEC)
|
||||
else if (family == WS_AF_UNSPEC)
|
||||
{
|
||||
ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE,
|
||||
GetProcessHeap(), 0);
|
||||
|
Loading…
Reference in New Issue
Block a user