msxml3: Make it clear when encoded buffer is created.

This commit is contained in:
Nikolay Sivov 2012-11-18 23:48:29 -05:00 committed by Alexandre Julliard
parent 67c07ff42a
commit f6d22b06c6
1 changed files with 3 additions and 1 deletions

View File

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