commit | 5213b4a3f29822b69b3bd6fe0cb0dad0bc002c53 | [log] [tgz] |
---|---|---|
author | Hans Leidekker <hans@it.vu.nl> | Sat Jun 17 15:13:28 2006 +0200 |
committer | Alexandre Julliard <julliard@winehq.org> | Mon Jun 19 10:30:02 2006 +0200 |
tree | 5be2281dc90b08e6922c55508617429824a5739b | |
parent | 01273e7eb67a7bd918a246e0d76f36fd628f6a34 [diff] [blame] |
dnsapi: Correct testing for zero option value DNS_QUERY_STANDARD.
diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index f7f9271..6e84eb4 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c
@@ -88,8 +88,9 @@ { unsigned long ret = 0; - if (options & DNS_QUERY_STANDARD) - ret |= RES_DEFAULT; + if (options == DNS_QUERY_STANDARD) + return RES_DEFAULT; + if (options & DNS_QUERY_ACCEPT_TRUNCATED_RESPONSE) ret |= RES_IGNTC; if (options & DNS_QUERY_USE_TCP_ONLY)