richedit: Handle negative position given to EM_POSFROMCHAR. (Bug 13672)

Dylan Smith dylan.ah.smith at gmail.com
Tue Oct 28 17:16:23 CDT 2008


This case would cause an assertion failure in ME_RunOfsFromCharOfs, and
the included test indicates it should be used as if it were position 0.
This seems to be the only place where ME_RunOfsFromCharOfs could receive
a negative position, so it makes sense to handle this case just on
EM_POSFROMCHAR messages.
---
 dlls/riched20/editor.c       |    1 +
 dlls/riched20/tests/editor.c |    4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-richedit-Handle-negative-position-given-to-EM_PO.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081028/2780db4c/attachment.txt 


More information about the wine-patches mailing list