* libc/minires-os-if.c (get_dns_info): Remove unnecessary test for

existence of DnsQuery_A.
This commit is contained in:
Corinna Vinschen 2011-05-01 14:56:46 +00:00
parent 5c2be92ec4
commit 1112b2c38f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2011-05-01 Corinna Vinschen <corinna@vinschen.de>
* libc/minires-os-if.c (get_dns_info): Remove unnecessary test for
existence of DnsQuery_A.
2011-05-01 Corinna Vinschen <corinna@vinschen.de>
Throughout, use user32 UNICODE functions rather than ANSI functions.

View File

@ -419,8 +419,7 @@ void get_dns_info(res_state statp)
FIXED_INFO * pFixedInfo;
int numAddresses = 0;
if (statp->use_os
&& ((dwRetVal = DnsQuery_A(NULL, 0, 0, NULL, NULL, NULL)) != ERROR_PROC_NOT_FOUND))
if (statp->use_os)
{
DPRINTF(debug, "using dnsapi.dll %d\n", dwRetVal);
statp->os_query = (typeof(statp->os_query)) cygwin_query;