richedit: fix modify step setting in EM_SETCHARFORMAT.

Alex Villací­s Lasso a_villacis at palosanto.com
Mon Apr 28 12:03:02 CDT 2008


Fixes crash #2 with Perfect! TextEdit (bug #709)

Changelog:
* richedit: fix modify step setting in EM_SETCHARFORMAT.
* EM_SETCHARFORMAT with wParam==0 sets default char format and does NOT 
set modify step flag.
* EM_SETCHARFORMAT with wParam==SCF_SELECTION only sets modify step flag 
when selection is nonempty.
* EM_GETMODIFY returns -1, not 1, when modify flag is set.
* Tests for the above behavior.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-richedit-fix-modify-step-setting-in-EM_SETCHARFORMA.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080428/fc9b9e11/attachment.bin 


More information about the wine-patches mailing list