From 6b25723cf79c7787887c0ab8737f45c682d37376 Mon Sep 17 00:00:00 2001 From: Sander van Leeuwen Date: Tue, 17 Sep 2002 01:30:13 +0000 Subject: [PATCH] Listview_ProcessLetterKeys: fixed never ending loop when end index is zero. --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index c972a5cda57..28771830d24 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -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; }