RICHED20: fix test failure in test_WM_PASTE

Alex Villací­s Lasso a_villacis at
Tue Nov 6 14:26:30 CST 2007

Alex Villacís Lasso escribió:
> At last! I finally found the way to make native riched20 actually obey
> keystrokes involving Ctrl and some other key. It seems that native riched20
> checks the actual keyboard state during WM_KEYDOWN processing, and won't
> process keystrokes if the keyboard state does not match the messages being
> sent. However, with keybd_event(), native riched20 can be fooled into
> accepting
> simulated keystrokes.
> Changelog:
> * Native riched20 won't obey simple WM_CHAR or WM_KEYDOWN/WM_KEYUP messages
>   when processing Ctrl-Key keystrokes. Use keybd_event() instead. Fixes one
>   test failure in Win98 and WinXP-SP2.
> * Add more through tests to test_WM_PASTE, to check that text is actually
>   being modified in intermediate steps. Fixes false test success in Win98 and
>   WinXP-SP2. Additional tests pass under Win98, WinXP-SP2 and Wine.
> ------------------------------------------------------------------------
Was there something wrong with this patch? Two other patches of mine for 
riched20 have been committed, but not this one. As it currently stands, 
it removes the last test failure and also fixes a false test success in 

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

More information about the wine-devel mailing list