comctl32/listview: Search through all items in LVFI_NEARESTXY mode.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-05-22 00:09:39 +03:00 committed by Alexandre Julliard
parent 416180a856
commit 407a3c06fa
1 changed files with 2 additions and 0 deletions

View File

@ -6392,6 +6392,8 @@ static INT LISTVIEW_FindItemW(const LISTVIEW_INFO *infoPtr, INT nStart,
lvItem.mask &= ~LVIF_TEXT;
}
nItem = bNearest ? -1 : nStart + 1;
again:
for (; nItem < nLast; nItem++)
{