diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 565ee27a09e..5c7e55bb2f7 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -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);