iphlpapi: Don't overwrite last IPv4 address with first IPv6 address.

This commit is contained in:
Juan Lang 2010-08-17 11:01:03 -07:00 committed by Alexandre Julliard
parent 6e09d7bd60
commit acda9f6ba9
1 changed files with 1 additions and 0 deletions

View File

@ -721,6 +721,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, DWORD index, IP_ADAPTER_ADD
for (ua = aa->FirstUnicastAddress; ua->Next; ua = ua->Next)
;
ua->Next = (IP_ADAPTER_UNICAST_ADDRESS *)ptr;
ua = (IP_ADAPTER_UNICAST_ADDRESS *)ptr;
}
else
ua = aa->FirstUnicastAddress = (IP_ADAPTER_UNICAST_ADDRESS *)ptr;