Listview_ProcessLetterKeys: fixed never ending loop when end index is
zero.
This commit is contained in:
parent
e944bbb954
commit
6b25723cf7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue