user32: Fix regression in alt, then right processing with eg wines notepad.

This commit is contained in:
Jason Edmeades 2007-08-12 22:29:02 +01:00 committed by Alexandre Julliard
parent 76943c2a41
commit 902a384b38
1 changed files with 2 additions and 2 deletions

View File

@ -2682,13 +2682,13 @@ static LRESULT MENU_DoNextMenu( MTRACKER* pmt, UINT vk )
else if ((vk == VK_RIGHT) && !IS_SYSTEM_MENU(menu))
{
int i = menu->FocusedItem + 1;
while (i < (menu->nItems - 1)) {
while (i < menu->nItems) {
if ((menu->items[i].wID >= SC_SIZE &&
menu->items[i].wID <= SC_RESTORE)) {
i++;
} else break;
}
if (i == (menu->nItems - 1)) {
if (i == menu->nItems) {
atEnd = TRUE;
}
}