mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 10:40:39 +00:00
iphlpapi: Don't set the dns server list if there are no servers.
This commit is contained in:
parent
c0a14564d3
commit
5bfabee8cd
1 changed files with 1 additions and 1 deletions
|
@ -1083,7 +1083,7 @@ ULONG WINAPI DECLSPEC_HOTPATCH GetAdaptersAddresses(ULONG family, ULONG flags, P
|
|||
size = bytes_left -= size;
|
||||
}
|
||||
}
|
||||
if (!(flags & GAA_FLAG_SKIP_DNS_SERVER))
|
||||
if (!(flags & GAA_FLAG_SKIP_DNS_SERVER) && dns_server_size)
|
||||
{
|
||||
firstDns = (PIP_ADAPTER_DNS_SERVER_ADDRESS)((BYTE *)first_aa + total_size - dns_server_size - dns_suffix_size);
|
||||
get_dns_server_addresses(firstDns, &dns_server_size);
|
||||
|
|
Loading…
Reference in a new issue