iphlpapi: Don't overwrite last IPv4 address with first IPv6 address.
This commit is contained in:
parent
6e09d7bd60
commit
acda9f6ba9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue