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>
This commit is contained in:
Hans Leidekker 2016-07-08 10:20:33 +02:00 committed by Alexandre Julliard
parent 04c52f1467
commit da5c332c92
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}