diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index f1b31f75a02..9bdd7062937 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c @@ -628,7 +628,10 @@ DNS_STATUS WINAPI DnsQuery_UTF8( PCSTR name, WORD type, DWORD options, PIP4_ARRA _res.options |= dns_map_options( options ); if (servers && (ret = dns_set_serverlist( servers ))) + { + UNLOCK_RESOLVER(); return ret; + } ret = dns_do_query( name, type, options, result );