From d2236db8c1a8960579e29259dfe54998e20aff2d Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Mon, 14 Nov 2011 19:20:06 -0800 Subject: [PATCH] iphlpapi: Fix enumerating IPv6 addresses. --- dlls/iphlpapi/iphlpapi_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index a2bdea3858c..28185a87131 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -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 {