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:
parent
0a3dbf0eb0
commit
b665b05166
|
@ -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
|
||||||
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
|
||||||
|
|
||||||
done:
|
done:
|
||||||
LeaveCriticalSection( &writer->cs );
|
LeaveCriticalSection( &writer->cs );
|
||||||
return S_OK;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue