richedit: fix failing EM_GETCHARFORMAT test on all platforms

Austin English austinenglish at
Wed Jun 25 13:13:11 CDT 2008

On Wed, Jun 25, 2008 at 10:51 AM, Alex Villací­s Lasso
<a_villacis at> wrote:
> Default richedit font (System) in Windows causes native richedit to report
> CFM_BOLD as always set, regardless of selection, or previous calls to
> EM_SETCHARFORMAT. Switch to Courier New in order to see that richedit really
> sets the CFM_BOLD attribute in the correct selection.
> This fix was successful in removing failure in WinXP-SP2 (real machine) and
> in Win98 (QEMU virtual machine). However, could you please test on other
> platforms (win2k, win2k3, Vista) to see whether it removes the failure there
> too? I want to be extra sure that this test actually passes on all
> platforms.
> Changelog:
> * Fix failing EM_GETCHARFORMAT test on all platforms
> --
> perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'

Passes in windows 2k. Output attached.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: win2k.txt

More information about the wine-patches mailing list