RICHED20: fix WM_GETTEXT to change \r to \r\n

a_villacis at a_villacis at
Sun Sep 23 16:40:28 CDT 2007

This patch corrects the behavior of riched20 on WM_GETTEXT to replace
unpaired \r with \r\n, by implementing WM_GETTEXT on top of EM_GETTEXTEX
with the GT_USECRLF flag. The tests introduced by the previous patch for
this behavior now succeed, so this patch also removes some todo_wine's.
Finally, a pair of tests break with the new behavior of WM_GETTEXT, so
these tests were fixed as well. However, these two tests are the very same
ones that already fail in WinXP-SP2 because native riched20 ignores Ctrl-C
and Ctrl-V when sent as WM_CHAR.

* When riched20 receives WM_GETTEXT, unpaired \r get converted to \r\n. Fix
  behavior of control to do this.
* Remove todo_wine on tests intended to show this behavior.
* Fix tests that otherwise break with corrected behavior of WM_GETTEXT.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine-riched20-tests-WM_GETTEXT-fix-newlines.patch
Type: text/x-patch
Size: 3460 bytes
Desc: not available
Url : 

More information about the wine-patches mailing list