webservices: Unlock critical section before returning.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Sebastian Lackner 2017-03-09 01:06:38 +01:00 committed by Alexandre Julliard
parent 1ddf2b4db8
commit 3c6c6a3cae
1 changed files with 2 additions and 1 deletions

View File

@ -1182,6 +1182,8 @@ HRESULT WINAPI WsGetNamespaceFromPrefix( WS_XML_READER *handle, const WS_XML_STR
}
}
LeaveCriticalSection( &reader->cs );
if (!found)
{
if (required) return WS_E_INVALID_FORMAT;
@ -1189,7 +1191,6 @@ HRESULT WINAPI WsGetNamespaceFromPrefix( WS_XML_READER *handle, const WS_XML_STR
return S_FALSE;
}
LeaveCriticalSection( &reader->cs );
return S_OK;
}