dnsapi: Fixed missing lock release on error path.

This commit is contained in:
Michael Stefaniuc 2006-05-30 23:39:30 +02:00 committed by Alexandre Julliard
parent 6311d44488
commit 15c0db3623
1 changed files with 3 additions and 0 deletions

View File

@ -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 );