comctl32/listview: Fix infinite loop case for full item range as a first search range.
This commit is contained in:
parent
78b020c018
commit
ce5a06c1b0
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue