Listview_ProcessLetterKeys: fixed never ending loop when end index is
authorSander van Leeuwen <sandervl@xs4all.nl>
Tue, 17 Sep 2002 01:30:13 +0000 (01:30 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 17 Sep 2002 01:30:13 +0000 (01:30 +0000)
zero.

dlls/comctl32/listview.c

index c972a5c..2877183 100644 (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;
         }