Start from correct value in SIC_GetIconIndex
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Tue Apr 9 14:56:31 CDT 2002
Changelog:
wine/dlls/shell32/iconcache.c: SIC_GetIconIndex
Start DPA_Search from Index 0
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/shell32/iconcache.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/iconcache.c,v
retrieving revision 1.53
diff -u -r1.53 iconcache.c
--- wine/dlls/shell32/iconcache.c 9 Mar 2002 23:44:29 -0000 1.53
+++ wine/dlls/shell32/iconcache.c 9 Apr 2002 19:55:14 -0000
@@ -63,7 +63,7 @@
* Callback for DPA_Search
*/
static INT CALLBACK SIC_CompareEntries( LPVOID p1, LPVOID p2, LPARAM lparam)
-{ TRACE("%p %p\n", p1, p2);
+{ TRACE("%p %p %8lx\n", p1, p2, lparam);
if (((LPSIC_ENTRY)p1)->dwSourceIndex != ((LPSIC_ENTRY)p2)->dwSourceIndex) /* first the faster one*/
return 1;
@@ -161,7 +161,8 @@
if (NULL != pDPA_GetPtr (sic_hdpa, 0))
{
- index = pDPA_Search (sic_hdpa, &sice, -1L, SIC_CompareEntries, 0, 0);
+ /* search linear from position 0*/
+ index = pDPA_Search (sic_hdpa, &sice, 0, SIC_CompareEntries, 0, 0);
}
if ( INVALID_INDEX == index )
More information about the wine-patches
mailing list