listview_finditem patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Diff relative to Dimitries W6 patch.

Changelog:

	dlls/comctl32	: listview.c
	Search through all items when LISTVIEW_FindItemW is called
	with LVFI_PARAM flag.

Rein.
-- 
Rein Klazes
rklazes@xs4all.nl
--- listview.w6.c	2002-10-23 08:38:12.000000000 +0200
+++ listview.c	2002-10-23 08:40:53.000000000 +0200
@@ -4453,8 +4453,13 @@
         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)
 	{

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux