Commit b665b051 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

webservices: Return the correct HRESULT on error.

parent 0a3dbf0e
...@@ -945,7 +945,7 @@ HRESULT WINAPI WsWriteEndStartElement( WS_XML_WRITER *handle, WS_ERROR *error ) ...@@ -945,7 +945,7 @@ HRESULT WINAPI WsWriteEndStartElement( WS_XML_WRITER *handle, WS_ERROR *error )
done: done:
LeaveCriticalSection( &writer->cs ); LeaveCriticalSection( &writer->cs );
return S_OK; return hr;
} }
static HRESULT write_add_attribute( struct writer *writer, const WS_XML_STRING *prefix, 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 ...@@ -1018,7 +1018,7 @@ HRESULT WINAPI WsWriteStartAttribute( WS_XML_WRITER *handle, const WS_XML_STRING
writer->state = WRITER_STATE_STARTATTRIBUTE; writer->state = WRITER_STATE_STARTATTRIBUTE;
LeaveCriticalSection( &writer->cs ); LeaveCriticalSection( &writer->cs );
return S_OK; return hr;
} }
/* flush current start element if necessary */ /* flush current start element if necessary */
...@@ -2676,7 +2676,7 @@ HRESULT WINAPI WsWriteXmlBuffer( WS_XML_WRITER *handle, WS_XML_BUFFER *buffer, W ...@@ -2676,7 +2676,7 @@ HRESULT WINAPI WsWriteXmlBuffer( WS_XML_WRITER *handle, WS_XML_BUFFER *buffer, W
done: done:
LeaveCriticalSection( &writer->cs ); LeaveCriticalSection( &writer->cs );
return S_OK; return hr;
} }
/************************************************************************** /**************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment