webservices: Flush the writer first in WsWriteXmlBuffer.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2016-08-25 20:02:44 +02:00 committed by Alexandre Julliard
parent bc7228a460
commit 633828f832
1 changed files with 1 additions and 0 deletions

View File

@ -1920,6 +1920,7 @@ HRESULT WINAPI WsWriteXmlBuffer( WS_XML_WRITER *handle, WS_XML_BUFFER *buffer, W
if (!writer || !xmlbuf) return E_INVALIDARG;
if ((hr = write_flush( writer )) != S_OK) return hr;
if ((hr = write_grow_buffer( writer, xmlbuf->size )) != S_OK) return hr;
write_bytes( writer, xmlbuf->ptr, xmlbuf->size );
return S_OK;