Commit 8f4042c5 authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

Fix 1.0 emulation mode in ME_GetTextW.

parent e1f752f7
......@@ -2069,6 +2069,9 @@ int ME_GetTextW(ME_TextEditor *editor, WCHAR *buffer, int nStart, int nChars, in
nWritten++;
}
assert(nLen == 1);
/* our end paragraph consists of 2 characters now */
if (editor->bEmulateVersion10)
nChars--;
}
else
CopyMemory(buffer, item->member.run.strText->szData, sizeof(WCHAR)*nLen);
......
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