RICHED20: Allow for Win98 behavior for return value of EM_REPLACESEL
Alex Villacís Lasso
a_villacis at palosanto.com
Mon Oct 29 10:25:31 CDT 2007
Win98's riched20 (version 2.0) and WinXP's riched20 (version 3.0)
disagree on what to return from EM_REPLACESEL. The general rule seems to
be that Win98's riched20 returns the number of characters *inserted*
into the control (after required conversions), but WinXP's riched20
returns the number of characters interpreted from the original lParam.
Wine's builtin riched20 implements the WinXP behavior, but the tests
should allow for Win98's behavior to remove a few test failures on Win98.
Changelog:
* Allow for Win98 behavior on the return value of EM_REPLACESEL. Fixes a
few test failures on Win98.
--
perl -e '$x=2.4;print sprintf("%.0f + %.0f = %.0f\n",$x,$x,$x+$x);'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-riched20-test-EM_REPLACESEL-win98-behavior.patch
Type: text/x-patch
Size: 4868 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071029/11497ee5/attachment.bin
More information about the wine-patches
mailing list