Commit b14f6384 authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

SIC_GetIconIndex: start DPA_Search from index 0.

parent 8a37450d
......@@ -63,7 +63,7 @@ static CRITICAL_SECTION SHELL32_SicCS = CRITICAL_SECTION_INIT("SHELL32_SicCS");
* 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 @@ INT SIC_GetIconIndex (LPCSTR sSourceFile, INT dwSourceIndex )
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 )
......
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