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
1 changed files with 1 additions and 1 deletions

View File

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