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

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

parent 6e09d7bd
......@@ -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;
......
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