iphlpapi: Fix enumerating IPv6 addresses.
This commit is contained in:
parent
9e0baa55ce
commit
d2236db8c1
|
@ -770,12 +770,10 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, DWORD index,
|
|||
ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE,
|
||||
GetProcessHeap(), 0);
|
||||
if (!ret)
|
||||
{
|
||||
num_v4_gateways = count_v4_gateways(index, routeTable);
|
||||
if (!(flags & GAA_FLAG_SKIP_UNICAST))
|
||||
ret = v6addressesFromIndex(index, &v6addrs, &num_v6addrs);
|
||||
}
|
||||
}
|
||||
if (!ret && !(flags & GAA_FLAG_SKIP_UNICAST))
|
||||
ret = v6addressesFromIndex(index, &v6addrs, &num_v6addrs);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue