richedit: add tests for EM_FINDTEXT in 1.0 emulation, make them pass under Wine

Alex Villací­s Lasso a_villacis at palosanto.com
Wed Apr 30 09:50:49 CDT 2008


EM_FINDTEXT and EM_FINDTEXTEX have different rules for interpreting 
ranges for 1.0 and 2.0 modes:

In 1.0 emulation cpMin > cpMax is invalid and always fails.
In 1.0 emulation, search is always done between cpMin and cpMax, even 
backwards search.
In 1.0 emulation, cpMax == -1 assumes FR_DOWN, even if not set.

This goes a long way towards resolving richedit search problems in bug #709.

Changelog:
* Add tests for EM_FINDTEXT in 1.0 emulation, make them pass under Wine

-- 
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-richedit-add-tests-for-EM_FINDTEXT-in-1.0-emulation.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080430/e8578334/attachment-0001.bin 


More information about the wine-patches mailing list