mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[WIN32SS] Ensure the last menu item is not accidentally selected when a system menu is off-screen
CORE-16297
This commit is contained in:
parent
84e263ceb2
commit
6948764b21
1 changed files with 2 additions and 0 deletions
|
@ -3405,6 +3405,8 @@ static PMENU FASTCALL MENU_ShowSubPopup(PWND WndOwner, PMENU Menu, BOOL SelectFi
|
|||
MENU_InitSysMenuPopup(Item->spSubMenu, pWnd->style, pWnd->pcls->style, HTSYSMENU);
|
||||
|
||||
NC_GetSysPopupPos(pWnd, &Rect);
|
||||
/* Ensure we do not overlap this */
|
||||
ParentRect = Rect;
|
||||
if (Flags & TPM_LAYOUTRTL) Rect.left = Rect.right;
|
||||
Rect.top = Rect.bottom;
|
||||
Rect.right = UserGetSystemMetrics(SM_CXSIZE);
|
||||
|
|
Loading…
Reference in a new issue