Hans Leidekker : dnsapi:
Correct testing for zero option value DNS_QUERY_STANDARD.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 19 03:35:28 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 5213b4a3f29822b69b3bd6fe0cb0dad0bc002c53
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=5213b4a3f29822b69b3bd6fe0cb0dad0bc002c53
Author: Hans Leidekker <hans at it.vu.nl>
Date: Sat Jun 17 15:13:28 2006 +0200
dnsapi: Correct testing for zero option value DNS_QUERY_STANDARD.
---
dlls/dnsapi/query.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
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 @@ static unsigned long dns_map_options( DW
{
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)
More information about the wine-cvs
mailing list