Hans Leidekker : webservices: Flush the writer first in WsWriteXmlBuffer.

Alexandre Julliard julliard at winehq.org
Fri Aug 26 10:18:10 CDT 2016


Module: wine
Branch: master
Commit: 633828f832c301d13082fd4600234732a9e583f1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=633828f832c301d13082fd4600234732a9e583f1

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Aug 25 20:02:44 2016 +0200

webservices: Flush the writer first in WsWriteXmlBuffer.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/webservices/writer.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c
index 1fb5489..177c6e0 100644
--- a/dlls/webservices/writer.c
+++ b/dlls/webservices/writer.c
@@ -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;




More information about the wine-cvs mailing list