Fix 1.0 emulation mode in ME_GetTextW.

This commit is contained in:
Krzysztof Foltman 2005-10-10 10:30:25 +00:00 committed by Alexandre Julliard
parent e1f752f704
commit 8f4042c574
1 changed files with 3 additions and 0 deletions

View File

@ -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);