[PATCH] riched20: Process WM_GETMINMAXINFO which arrives before WM_NCCREATE.
Dmitry Timoshkov
dmitry at codeweavers.com
Tue Jul 6 02:39:20 CDT 2010
Austin Lund <austin.lund at 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.
More information about the wine-devel
mailing list