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

Dylan Smith dylan.ah.smith at
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
 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

More information about the wine-patches mailing list