Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b14f6384
Commit
b14f6384
authored
Apr 11, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SIC_GetIconIndex: start DPA_Search from index 0.
parent
8a37450d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
iconcache.c
dlls/shell32/iconcache.c
+3
-2
No files found.
dlls/shell32/iconcache.c
View file @
b14f6384
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment