comctl32/listview: Fix infinite loop case for full item range as a first search range.

This commit is contained in:
Nikolay Sivov 2010-08-20 11:03:25 +04:00 committed by Alexandre Julliard
parent 78b020c018
commit ce5a06c1b0
1 changed files with 3 additions and 2 deletions

View File

@ -1849,8 +1849,9 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCode, L
}
}
/* found something or second search completed with any result */
if (nItem != -1 || endidx != infoPtr->nItemCount)
if ( nItem != -1 || /* found something */
endidx != infoPtr->nItemCount || /* second search done */
(startidx == 0 && endidx == infoPtr->nItemCount) /* full range for first search */ )
break;
};
}