[2/2] richedit: Fixed EM_POSFROMCHAR for pos of text length. (Fixes bug 15243)

Dylan Smith dylan.ah.smith at gmail.com
Wed Oct 22 01:22:41 CDT 2008

For some reason EM_POSFROMCHAR was returning 0 when the position was
equal to the end of the text, or beyond the end of the text. Instead it
should use the position at the end of the text for both these cases.
The x value was also seen to be offset by 1 according to the tests.
 dlls/riched20/editor.c       |   19 ++++++++-----------
 dlls/riched20/tests/editor.c |    6 +-----
 dlls/riched32/tests/editor.c |    4 ----
 3 files changed, 9 insertions(+), 20 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-richedit-Fixed-EM_POSFROMCHAR-for-pos-of-text-le.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081022/e98af06a/attachment.txt 

More information about the wine-patches mailing list