Hans Leidekker : webservices: Increase the maximum size of the channel writer buffer.

Alexandre Julliard julliard at winehq.org
Wed Oct 31 15:58:33 CDT 2018


Module: wine
Branch: master
Commit: ec2ea93bbbca1f6a6de66cbec17a83173fb84ced
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ec2ea93bbbca1f6a6de66cbec17a83173fb84ced

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Wed Oct 31 14:21:29 2018 +0100

webservices: Increase the maximum size of the channel writer buffer.

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

---

 dlls/webservices/channel.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/webservices/channel.c b/dlls/webservices/channel.c
index b995a86..de84b0e 100644
--- a/dlls/webservices/channel.c
+++ b/dlls/webservices/channel.c
@@ -1316,9 +1316,14 @@ static HRESULT init_writer( struct channel *channel )
     WS_XML_WRITER_BUFFER_OUTPUT buf = {{WS_XML_WRITER_OUTPUT_TYPE_BUFFER}};
     WS_XML_WRITER_TEXT_ENCODING text = {{WS_XML_WRITER_ENCODING_TYPE_TEXT}, WS_CHARSET_UTF8};
     WS_XML_WRITER_BINARY_ENCODING bin = {{WS_XML_WRITER_ENCODING_TYPE_BINARY}};
+    WS_XML_WRITER_PROPERTY prop;
+    ULONG max_size = (1 << 17);
     HRESULT hr;
 
-    if (!channel->writer && (hr = WsCreateWriter( NULL, 0, &channel->writer, NULL )) != S_OK) return hr;
+    prop.id        = WS_XML_WRITER_PROPERTY_BUFFER_MAX_SIZE;
+    prop.value     = &max_size;
+    prop.valueSize = sizeof(max_size);
+    if (!channel->writer && (hr = WsCreateWriter( &prop, 1, &channel->writer, NULL )) != S_OK) return hr;
 
     switch (channel->encoding)
     {




More information about the wine-cvs mailing list