From da5c332c924cbc4c485c48edab083ec6527b1988 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Fri, 8 Jul 2016 10:20:33 +0200 Subject: [PATCH] webservices: Return the number of bytes written from WsWriteXmlBufferToBytes. Signed-off-by: Hans Leidekker Signed-off-by: Alexandre Julliard --- dlls/webservices/writer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/webservices/writer.c b/dlls/webservices/writer.c index 50cd3981dae..45c5021664d 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; }