[NTUSER] menu.c position fix to not obscure 'Close' (#6923)

CORE-19579

When IS_SYSTEM_MENU was redefined in 3ae0ccdcc,
this broke the logic here. So now we restore the correctly working logic.
This commit is contained in:
Doug Lyons 2024-05-24 19:15:07 -05:00 committed by GitHub
parent 50d260a7f0
commit 6338913f26
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3394,7 +3394,7 @@ static PMENU FASTCALL MENU_ShowSubPopup(PWND WndOwner, PMENU Menu, BOOL SelectFi
} }
Item->fState |= MF_MOUSESELECT; Item->fState |= MF_MOUSESELECT;
if (IS_SYSTEM_MENU(Menu)) if (IS_SYSTEM_MENU(Menu) && !(Menu->fFlags & MNF_POPUP))
{ {
MENU_InitSysMenuPopup(Item->spSubMenu, pWnd->style, pWnd->pcls->style, HTSYSMENU); MENU_InitSysMenuPopup(Item->spSubMenu, pWnd->style, pWnd->pcls->style, HTSYSMENU);