dnsapi: Correct testing for zero option value DNS_QUERY_STANDARD.

This commit is contained in:
Hans Leidekker 2006-06-17 15:13:28 +02:00 committed by Alexandre Julliard
parent 01273e7eb6
commit 5213b4a3f2
1 changed files with 3 additions and 2 deletions

View File

@ -88,8 +88,9 @@ static unsigned long dns_map_options( DWORD options )
{ {
unsigned long ret = 0; unsigned long ret = 0;
if (options & DNS_QUERY_STANDARD) if (options == DNS_QUERY_STANDARD)
ret |= RES_DEFAULT; return RES_DEFAULT;
if (options & DNS_QUERY_ACCEPT_TRUNCATED_RESPONSE) if (options & DNS_QUERY_ACCEPT_TRUNCATED_RESPONSE)
ret |= RES_IGNTC; ret |= RES_IGNTC;
if (options & DNS_QUERY_USE_TCP_ONLY) if (options & DNS_QUERY_USE_TCP_ONLY)