From f6d22b06c6e58fe250cb7bd375df19277e58b551 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 18 Nov 2012 23:48:29 -0500 Subject: [PATCH] msxml3: Make it clear when encoded buffer is created. --- dlls/msxml3/mxwriter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dlls/msxml3/mxwriter.c b/dlls/msxml3/mxwriter.c index f03ceb07fab..d62e6a3057b 100644 --- a/dlls/msxml3/mxwriter.c +++ b/dlls/msxml3/mxwriter.c @@ -288,7 +288,9 @@ static HRESULT alloc_output_buffer(xml_encoding encoding, output_buffer **buffer return hr; } - if (ret->code_page == CP_UTF8) { + /* currently we always create a default output buffer that is UTF-16 only, + but it's possible to allocate with specific encoding too */ + if (encoding != XmlEncoding_UTF16) { hr = init_encoded_buffer(&ret->encoded); if (hr != S_OK) { free_encoded_buffer(&ret->utf16);