Commit d2236db8 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

iphlpapi: Fix enumerating IPv6 addresses.

parent 9e0baa55
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment