Commit a49a2abf authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

xmllite/reader: Use correct byte length when updating utf16 buffer contents marker.

parent a304924c
...@@ -1030,7 +1030,7 @@ static void readerinput_switchencoding(xmlreaderinput *readerinput, xml_encoding ...@@ -1030,7 +1030,7 @@ static void readerinput_switchencoding(xmlreaderinput *readerinput, xml_encoding
{ {
readerinput_grow(readerinput, len); readerinput_grow(readerinput, len);
memcpy(dest->data, src->data + src->cur, len); memcpy(dest->data, src->data + src->cur, len);
dest->written += len*sizeof(WCHAR); dest->written += len;
} }
else else
{ {
...@@ -1084,7 +1084,7 @@ static HRESULT reader_more(xmlreader *reader) ...@@ -1084,7 +1084,7 @@ static HRESULT reader_more(xmlreader *reader)
{ {
readerinput_grow(readerinput, len); readerinput_grow(readerinput, len);
memcpy(dest->data + dest->written, src->data + src->cur, len); memcpy(dest->data + dest->written, src->data + src->cur, len);
dest->written += len*sizeof(WCHAR); dest->written += len;
} }
else else
{ {
......
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