[2/2] richedit: Fixed the call to the EditWordBreakProc.

Dylan Smith dylan.ah.smith at gmail.com
Wed Oct 22 22:42:39 CDT 2008


The word break procedure is documented as passing in the number of
characters for richedit 2.0 and later, however, it actually passes the
number of bytes for the string to the EditWordBreakProc.

I noticed this problem in Google Chrome, and the source code documented
the mistake by MSDN.

This can be tested in google chrome by using word movement or word
selection on the URL bar.  See the AppDb entry for Google Chrome to see
how to get it running.

I also handled the richedit 1.0 case in the patch since otherwise it
could cause more a regression by doubling the length.
---
 dlls/riched20/string.c       |   24 +++++++++++++++++++-----
 dlls/riched20/tests/editor.c |    2 +-
 2 files changed, 20 insertions(+), 6 deletions(-)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0002-richedit-Fixed-the-call-to-the-EditWordBreakProc.diff.txt
Url: http://www.winehq.org/pipermail/wine-patches/attachments/20081022/e7a94407/attachment.txt 


More information about the wine-patches mailing list