webservices: Return the correct HRESULT on error.

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:07:00 +01:00 committed by Alexandre Julliard
parent 0a3dbf0eb0
commit b665b05166
1 changed files with 3 additions and 3 deletions

View File

@ -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;
}
/**************************************************************************