From 1fd077939f8776bd6c399b85a541558268142a64 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Wed, 23 Oct 2002 22:28:03 +0000 Subject: [PATCH] Search through all items when LISTVIEW_FindItemW is called with LVFI_PARAM flag. --- dlls/comctl32/listview.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 72f2a627000..5284063a5a7 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -4455,8 +4455,13 @@ again: lvItem.iSubItem = 0; if (!LISTVIEW_GetItemW(infoPtr, &lvItem)) continue; - if (lvItem.mask & LVIF_PARAM && lpFindInfo->lParam == lvItem.lParam) - return nItem; + if (lvItem.mask & LVIF_PARAM) + { + if (lpFindInfo->lParam == lvItem.lParam) + return nItem; + else + continue; + } if (lvItem.mask & LVIF_TEXT) { -- 2.11.4.GIT