Module: wine Branch: master Commit: da5c332c924cbc4c485c48edab083ec6527b1988 URL: http://source.winehq.org/git/wine.git/?a=commit;h=da5c332c924cbc4c485c48edab...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Jul 8 10:20:33 2016 +0200
webservices: Return the number of bytes written from WsWriteXmlBufferToBytes.
Signed-off-by: Hans Leidekker hans@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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 50cd398..45c5021 100644 --- a/dlls/webservices/writer.c +++ b/dlls/webservices/writer.c @@ -1929,6 +1929,7 @@ HRESULT WINAPI WsWriteXmlBufferToBytes( WS_XML_WRITER *handle, WS_XML_BUFFER *bu if (!(buf = ws_alloc( heap, xmlbuf->size ))) return WS_E_QUOTA_EXCEEDED; memcpy( buf, xmlbuf->ptr, xmlbuf->size ); *bytes = buf; + *size = xmlbuf->size; return S_OK; }