msxml3: Use correct string length in saxreader_get_cdata_chunk.
Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1a114c9f4b
commit
afdf7491ef
|
@ -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);
|
||||
ptr = bstr + len - 1;
|
||||
while ((*ptr == '\r' || *ptr == '\n') && ptr >= bstr)
|
||||
ptr--;
|
||||
|
|
Loading…
Reference in New Issue