http://bugs.winehq.org/show_bug.cgi?id=15243
Dylan Smith dylan.ah.smith@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #16789|0 |1 is obsolete| |
--- Comment #7 from Dylan Smith dylan.ah.smith@gmail.com 2008-10-22 00:48:49 --- Created an attachment (id=16790) --> (http://bugs.winehq.org/attachment.cgi?id=16790) richedit: Fixed EM_POSFROMCHAR for position of text length.
Here is the updated patch that I sent to wine-patches.
It correctly accounts for the case where the position used for EM_POSFROMCHAR is greater than the text length. It adds an offset of 1 that native does for some reason.