user32: Do not allow a change of capture if the currently capture window is a menu unless explicitly specified (try2)

Alexandre Julliard julliard at winehq.org
Fri Jan 8 03:06:34 CST 2010


Peter Dons Tychsen <donpedro at tdcadsl.dk> writes:

> @@ -85,6 +85,17 @@ BOOL set_capture_window( HWND hwnd, UINT gui_flags, HWND *prev_ret )
>      HWND previous = 0;
>      UINT flags = 0;
>      BOOL ret;
> +    GUITHREADINFO info;
> +    if(!GetGUIThreadInfo(GetCurrentThreadId(), &info))
> +    {
> +        return FALSE;
> +    }
> +
> +    /* if in menu mode, reject all requests to change focus, except if the menu bit is set */
> +    if((info.flags & GUI_INMENUMODE) && !(gui_flags & GUI_INMENUMODE))
> +    {
> +        return FALSE;
> +    }

This should be handled on the server side.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list