Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
82ed0ce9
Commit
82ed0ce9
authored
May 20, 2005
by
Michael Jung
Committed by
Alexandre Julliard
May 20, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consider only the GIL_FORSHORTCUT flag in SIC_CompareEntries.
parent
0089d517
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
iconcache.c
dlls/shell32/iconcache.c
+11
-5
No files found.
dlls/shell32/iconcache.c
View file @
82ed0ce9
...
...
@@ -78,13 +78,19 @@ static CRITICAL_SECTION SHELL32_SicCS = { &critsect_debug, -1, 0, 0, 0, 0 };
* Callback for DPA_Search
*/
static
INT
CALLBACK
SIC_CompareEntries
(
LPVOID
p1
,
LPVOID
p2
,
LPARAM
lparam
)
{
TRACE
(
"%p %p %8lx
\n
"
,
p1
,
p2
,
lparam
);
if
(((
LPSIC_ENTRY
)
p1
)
->
dwSourceIndex
!=
((
LPSIC_ENTRY
)
p2
)
->
dwSourceIndex
||
((
LPSIC_ENTRY
)
p1
)
->
dwFlags
!=
((
LPSIC_ENTRY
)
p2
)
->
dwFlags
)
/* first the faster one*/
{
LPSIC_ENTRY
e1
=
(
LPSIC_ENTRY
)
p1
,
e2
=
(
LPSIC_ENTRY
)
p2
;
TRACE
(
"%p %p %8lx
\n
"
,
p1
,
p2
,
lparam
);
/* Icons in the cache are keyed by the name of the file they are
* loaded from, their resource index and the fact if they have a shortcut
* icon overlay or not.
*/
if
(
e1
->
dwSourceIndex
!=
e2
->
dwSourceIndex
||
/* first the faster one */
(
e1
->
dwFlags
&
GIL_FORSHORTCUT
)
!=
(
e2
->
dwFlags
&
GIL_FORSHORTCUT
))
return
1
;
if
(
strcmpiW
(
((
LPSIC_ENTRY
)
p1
)
->
sSourceFile
,((
LPSIC_ENTRY
)
p2
)
->
sSourceFile
))
if
(
strcmpiW
(
e1
->
sSourceFile
,
e2
->
sSourceFile
))
return
1
;
return
0
;
...
...
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