| commit | 8f4042c57489c0ed945edd4f678aa3cb75f2e771 | [log] [tgz] |
|---|---|---|
| author | Krzysztof Foltman <wdev@foltman.com> | Mon Oct 10 10:30:25 2005 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Mon Oct 10 10:30:25 2005 +0000 |
| tree | c0535240b2ce0522cc050dcad993263ff7406e85 | |
| parent | e1f752f704c1a8b891dda71fd6235a1d8eafa211 [diff] |
Fix 1.0 emulation mode in ME_GetTextW.
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index 565ee27..5c7e55b 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c
@@ -2069,6 +2069,9 @@ 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);