mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
iphlpapi: Fix enumerating IPv6 addresses.
This commit is contained in:
parent
9e0baa55ce
commit
d2236db8c1
1 changed files with 2 additions and 4 deletions
|
@ -770,12 +770,10 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, DWORD index,
|
||||||
ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE,
|
ret = AllocateAndGetIpForwardTableFromStack(&routeTable, FALSE,
|
||||||
GetProcessHeap(), 0);
|
GetProcessHeap(), 0);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
|
||||||
num_v4_gateways = count_v4_gateways(index, routeTable);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue