Commit f659ae65 authored by Santino Mazza's avatar Santino Mazza Committed by Alexandre Julliard

iphlpapi: Set Ipv4Enabled and Ipv6Enabled flags accordingly.

parent a331f1e6
......@@ -959,12 +959,14 @@ static DWORD unicast_addresses_alloc( IP_ADAPTER_ADDRESSES *aa, ULONG family, UL
{
SOCKADDR_IN *in = (SOCKADDR_IN *)addr->Address.lpSockaddr;
in->sin_addr = key4->addr;
aa->Ipv4Enabled = TRUE;
}
else
{
SOCKADDR_IN6 *in6 = (SOCKADDR_IN6 *)addr->Address.lpSockaddr;
in6->sin6_addr = key6->addr;
in6->sin6_scope_id = dyn[i].scope_id;
aa->Ipv6Enabled = TRUE;
}
addr->PrefixOrigin = rw[i].prefix_origin;
addr->SuffixOrigin = rw[i].suffix_origin;
......
......@@ -1819,9 +1819,9 @@ static void test_GetAdaptersAddresses(void)
dns_eligible_found = TRUE;
if(ua->Address.lpSockaddr->sa_family == AF_INET)
todo_wine ok(aa->Ipv4Enabled == TRUE, "expected Ipv4Enabled flag to be set in interface %ls\n", aa->FriendlyName);
ok(aa->Ipv4Enabled == TRUE, "expected Ipv4Enabled flag to be set in interface %ls\n", aa->FriendlyName);
else if(ua->Address.lpSockaddr->sa_family == AF_INET6)
todo_wine ok(aa->Ipv6Enabled == TRUE, "expected Ipv6Enabled flag to be set in interface %ls\n", aa->FriendlyName);
ok(aa->Ipv6Enabled == TRUE, "expected Ipv6Enabled flag to be set in interface %ls\n", aa->FriendlyName);
ua = ua->Next;
}
......
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