dnsapi: Correct testing for zero option value DNS_QUERY_STANDARD.
This commit is contained in:
parent
01273e7eb6
commit
5213b4a3f2
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue