[PATCH] user32: GetMenuItemRect works without draw if the menu isn't a popup

Alexandre Julliard julliard at winehq.org
Mon Aug 1 10:25:28 CDT 2011


Andy Clayton <q3aiml at gmail.com> writes:

> +     itemMenu = MENU_GetMenu(hMenu);
> +     if (itemMenu == NULL)
> +         return FALSE;
> +
> +     if ((itemMenu->Height == 0 || itemMenu->Width == 0) && itemMenu->wFlags ^ MF_POPUP)

That flag test doesn't make sense. What are you trying to check here?

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list