[1/2] msxml3: Make it clear when encoded buffer is created

Nikolay Sivov nsivov at codeweavers.com
Mon Nov 19 05:56:07 CST 2012


Make it clear when encoded buffer is created
-------------- next part --------------
>From 4e9367ad9c5dfabd5ab231d6fc70b3bc2431c181 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun, 18 Nov 2012 23:48:29 -0500
Subject: [PATCH 9/9] 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 f03ceb0..d62e6a3 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);
-- 
1.7.10.4




More information about the wine-patches mailing list