6 Jul
2010
6 Jul
'10
7:39 a.m.
Austin Lund <austin.lund(a)gmail.com> wrote:
--- a/dlls/riched20/editor.c +++ b/dlls/riched20/editor.c @@ -4406,7 +4406,7 @@ 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 if ((msg != WM_NCDESTROY) && (msg != WM_GETMINMAXINFO)) { ERR("called with invalid hWnd %p - application bug?\n", hWnd); return 0;
This code is completely broken. An app can decide to not even pass these messages to a subclassed richedit control. -- Dmitry.