From fb87f0f88c54e4f63b5f9f19bb3151f684511e7e Mon Sep 17 00:00:00 2001 From: Doug Lyons Date: Tue, 16 Jul 2024 14:36:45 -0500 Subject: [PATCH] [NTUSER] Fix popup menu position when menu item is half off the left side of the screen (#7108) [CORE-16729](https://jira.reactos.org/browse/CORE-16729) --- win32ss/user/ntuser/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32ss/user/ntuser/menu.c b/win32ss/user/ntuser/menu.c index ee02d85e9d1..47cd4fc42b7 100644 --- a/win32ss/user/ntuser/menu.c +++ b/win32ss/user/ntuser/menu.c @@ -3001,8 +3001,8 @@ static BOOL FASTCALL MENU_ShowPopup(PWND pwndOwner, PMENU menu, UINT id, UINT fl /* We are off the left side of the screen */ if (x < monitor->rcMonitor.left) { - /* Re-orient the menu around the x-axis */ - x += width; + /* Position menu at left edge of screen */ + x = 0; if (x < monitor->rcMonitor.left || x >= monitor->rcMonitor.right || bIsPopup) x = monitor->rcMonitor.left;