Commit 107615da authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite/reader: Fix writing back resolved character reference value.

parent e918c6fd
...@@ -2054,8 +2054,12 @@ static HRESULT reader_parse_reference(xmlreader *reader) ...@@ -2054,8 +2054,12 @@ static HRESULT reader_parse_reference(xmlreader *reader)
/* normalize */ /* normalize */
if (is_wchar_space(ch)) ch = ' '; if (is_wchar_space(ch)) ch = ' ';
len = buffer->written - ((char*)ptr - buffer->data) - sizeof(WCHAR); ptr = reader_get_ptr(reader);
memmove(start+1, ptr+1, len); start = reader_get_ptr2(reader, cur);
len = buffer->written - ((char *)ptr - buffer->data);
memmove(start + 1, ptr + 1, len);
buffer->written -= (reader_get_cur(reader) - cur) * sizeof(WCHAR);
buffer->cur = cur + 1; buffer->cur = cur + 1;
*start = ch; *start = ch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment