diff --git "a/win32ss/user/ntuser/menu.c" "b/win32ss/user/ntuser/menu.c" index 47cd4fc42b7..69ef470c749 100644 --- "a/win32ss/user/ntuser/menu.c" +++ "b/win32ss/user/ntuser/menu.c" @@ -2992,10 +2992,8 @@ static BOOL FASTCALL MENU_ShowPopup(PWND pwndOwner, PMENU menu, UINT id, UINT fl /* We are off the right side of the screen */ if (x + width > monitor->rcMonitor.right) { - if ((x - width) < monitor->rcMonitor.left || x >= monitor->rcMonitor.right) - x = monitor->rcMonitor.right - width; - else - x -= width; + /* Position menu at right edge of screen */ + x = monitor->rcMonitor.right - width; } /* We are off the left side of the screen */