From b665b051660d00dfe6ede9b7a7a335d9b9dd6c99 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 9 Mar 2017 01:07:00 +0100 Subject: [PATCH] webservices: Return the correct HRESULT on error. Signed-off-by: Sebastian Lackner Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/webservices/writer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c index 20cbacef376..f47baa6c28f 100644 --- a/dlls/webservices/writer.c +++ b/dlls/webservices/writer.c @@ -945,7 +945,7 @@ HRESULT WINAPI WsWriteEndStartElement( WS_XML_WRITER *handle, WS_ERROR *error ) done: LeaveCriticalSection( &writer->cs ); - return S_OK; + return hr; } static HRESULT write_add_attribute( struct writer *writer, const WS_XML_STRING *prefix, @@ -1018,7 +1018,7 @@ HRESULT WINAPI WsWriteStartAttribute( WS_XML_WRITER *handle, const WS_XML_STRING writer->state = WRITER_STATE_STARTATTRIBUTE; LeaveCriticalSection( &writer->cs ); - return S_OK; + return hr; } /* flush current start element if necessary */ @@ -2676,7 +2676,7 @@ HRESULT WINAPI WsWriteXmlBuffer( WS_XML_WRITER *handle, WS_XML_BUFFER *buffer, W done: LeaveCriticalSection( &writer->cs ); - return S_OK; + return hr; } /**************************************************************************