Module: wine Branch: master Commit: 61e5fec020df76e42522843fb531f86b09f38acb URL: http://source.winehq.org/git/wine.git/?a=commit;h=61e5fec020df76e42522843fb5...
Author: Austin Lund austin.lund@gmail.com Date: Thu Jul 8 09:10:02 2010 +1000
riched20: Process messages which arrive before WM_NCCREATE.
---
dlls/riched20/editor.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c index b4bff4f..14ae16b 100644 --- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -4406,10 +4406,9 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam, texthost = ME_CreateTextHost(hWnd, pcs, FALSE); return texthost != NULL; } - else if (msg != WM_NCDESTROY) + else { - ERR("called with invalid hWnd %p - application bug?\n", hWnd); - return 0; + return DefWindowProcW(hWnd, msg, wParam, lParam); } }