richedit: Prevent crash on word selection at end of paragraph.

Dylan Smith dylan.ah.smith at gmail.com
Wed Feb 17 13:15:50 CST 2010


The bug can be tested by opening wordpad, type a character, press enter
to start a new paragraph, then double click at the end of the first
line/paragraph. This will crash wordpad because ME_MoveCursorWords set
the cursor to the wrong paragraph for the selected run when finding the
previous word over a paragraph boundary, so I fixed this by updating it
properly for this condition.
---
 dlls/riched20/caret.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-richedit-Prevent-crash-from-word-selection-on-end.diff.txt
Type: text/x-patch
Size: 413 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100217/ce47fe07/attachment.bin>


More information about the wine-patches mailing list