iphlpapi: Fix enumerating IPv6 addresses.

This commit is contained in:
Juan Lang 2011-11-14 19:20:06 -08:00 committed by Alexandre Julliard
parent 9e0baa55ce
commit d2236db8c1

View file

@ -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
{ {