Listview_ProcessLetterKeys: fixed never ending loop when end index is

zero.
This commit is contained in:
Sander van Leeuwen 2002-09-17 01:30:13 +00:00 committed by Alexandre Julliard
parent e944bbb954
commit 6b25723cf7

View file

@ -843,7 +843,7 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCode, L
} }
do { do {
if (idx == nSize) { if (idx == nSize) {
if (endidx == nSize) if (endidx == nSize || endidx == 0)
break; break;
idx=0; idx=0;
} }