Module: wine Branch: master Commit: 205df00c6465ac6183355b1d264ec86214bb7839 URL: http://source.winehq.org/git/wine.git/?a=commit;h=205df00c6465ac6183355b1d26... Author: Sergey Khodych <khodych(a)gmail.com> Date: Sun Oct 4 21:16:25 2009 +0300 riched20: Cache ES_WANTRETURN style. --- dlls/riched20/txthost.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/riched20/txthost.c b/dlls/riched20/txthost.c index 950d200..68f4437 100644 --- a/dlls/riched20/txthost.c +++ b/dlls/riched20/txthost.c @@ -59,6 +59,7 @@ ITextHost *ME_CreateTextHost(HWND hwnd, CREATESTRUCTW *cs, BOOL bEmulateVersion1 editor = ME_MakeEditor((ITextHost*)texthost, bEmulateVersion10); editor->exStyleFlags = GetWindowLongW(hwnd, GWL_EXSTYLE); + editor->styleFlags |= GetWindowLongW(hwnd, GWL_STYLE) & ES_WANTRETURN; editor->hWnd = hwnd; /* FIXME: Remove editor's dependence on hWnd */ editor->hwndParent = cs->hwndParent; SetWindowLongPtrW(hwnd, 0, (LONG_PTR)editor);