Commit 30b661ad authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3/mxwriter: Use 4K for internal buffer size.

parent 737d90c2
/* /*
* MXWriter implementation * MXWriter implementation
* *
* Copyright 2011-2014 Nikolay Sivov for CodeWeavers * Copyright 2011-2014, 2016 Nikolay Sivov for CodeWeavers
* Copyright 2011 Thomas Mullaly * Copyright 2011 Thomas Mullaly
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
...@@ -244,7 +244,7 @@ static xml_encoding parse_encoding_name(const WCHAR *encoding) ...@@ -244,7 +244,7 @@ static xml_encoding parse_encoding_name(const WCHAR *encoding)
static HRESULT init_encoded_buffer(encoded_buffer *buffer) static HRESULT init_encoded_buffer(encoded_buffer *buffer)
{ {
const int initial_len = 0x2000; const int initial_len = 0x1000;
buffer->data = heap_alloc(initial_len); buffer->data = heap_alloc(initial_len);
if (!buffer->data) return E_OUTOFMEMORY; if (!buffer->data) return E_OUTOFMEMORY;
......
...@@ -3305,7 +3305,6 @@ static void test_mxwriter_flush(void) ...@@ -3305,7 +3305,6 @@ static void test_mxwriter_flush(void)
pos2.QuadPart = 0; pos2.QuadPart = 0;
hr = IStream_Seek(stream, pos, STREAM_SEEK_CUR, &pos2); hr = IStream_Seek(stream, pos, STREAM_SEEK_CUR, &pos2);
EXPECT_HR(hr, S_OK); EXPECT_HR(hr, S_OK);
todo_wine
ok(pos2.QuadPart != 0, "unexpected stream beginning\n"); ok(pos2.QuadPart != 0, "unexpected stream beginning\n");
hr = IMXWriter_get_output(writer, NULL); hr = IMXWriter_get_output(writer, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment