msxml3: Use correct string length in saxreader_get_cdata_chunk

Piotr Caban piotr.caban at gmail.com
Fri Oct 6 04:19:56 CDT 2017


Hi Nikolay,

On 10/06/17 07:53, Nikolay Sivov wrote:
> On 05.10.2017 15:59, Piotr Caban wrote:
>> @@ -1972,6 +1972,7 @@ static BSTR saxreader_get_cdata_chunk(const xmlChar *str, int len)
>>       BSTR bstr = bstr_from_xmlCharN(str, len), ret;
>>       WCHAR *ptr;
>>   
>> +    len = SysStringLen(bstr);
> 
> Hi.
> 
> Just making sure I understand this correctly, the issue is that we're
> using length counted in xmlChars as WCHAR length?
Yes (it's fixing an application that has 2-bytes UTF-8 characters in 
CDATA block).



More information about the wine-devel mailing list