diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index c972a5cda57ea3ec46cd37b25195950fd86ca2a2..28771830d24ad7e0bc146c8f3e83e54954520da5 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; }