From 3c6c6a3cae7621294276f95fd035a7d4f699d399 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 9 Mar 2017 01:06:38 +0100 Subject: [PATCH] webservices: Unlock critical section before returning. Signed-off-by: Sebastian Lackner Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/webservices/reader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/webservices/reader.c b/dlls/webservices/reader.c index 0951af767a..26a5fe912d 100644 --- a/dlls/webservices/reader.c +++ b/dlls/webservices/reader.c @@ -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; }