mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:50:30 +00:00
webservices: Increase the maximum size of the channel writer buffer.
Signed-off-by: Hans Leidekker <hans@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3b7fd4ffed
commit
ec2ea93bbb
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue