RICHED20: 1.0 emulation off-by-ones - split - part 1/3: GetTextW fix
Krzysztof Foltman
wdev at foltman.com
Sat Oct 8 11:24:55 CDT 2005
ChangeLog:
* Fix 1.0 emulation mode in ME_GetTextW
Krzysztof
-------------- next part --------------
Index: editor.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/editor.c,v
retrieving revision 1.59
diff -u -r1.59 editor.c
@@ -2069,6 +2078,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);
More information about the wine-patches
mailing list