Commit ce5a06c1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/listview: Fix infinite loop case for full item range as a first search range.

parent 78b020c0
......@@ -1849,8 +1849,9 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCode, L
}
}
/* found something or second search completed with any result */
if (nItem != -1 || endidx != infoPtr->nItemCount)
if ( nItem != -1 || /* found something */
endidx != infoPtr->nItemCount || /* second search done */
(startidx == 0 && endidx == infoPtr->nItemCount) /* full range for first search */ )
break;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment