summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/libc/minires-os-if.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9df6108d7..338ddbc0f 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
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.
* autoload.cc: Convert all definitions for ANSI user32 functions to
definitions for the corresponding UNICODE function.
diff --git a/winsup/cygwin/libc/minires-os-if.c b/winsup/cygwin/libc/minires-os-if.c
index eb788f2c6..c2f1a46be 100644
--- a/winsup/cygwin/libc/minires-os-if.c
+++ b/winsup/cygwin/libc/minires-os-if.c
@@ -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;