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
dc60324d
Commit
dc60324d
authored
Oct 30, 2002
by
Carlos Lozano
Committed by
Alexandre Julliard
Oct 30, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed SHGFI_SYSICONINDEX flag handling.
parent
0cf75338
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
7 deletions
+16
-7
shell32_main.c
dlls/shell32/shell32_main.c
+15
-7
shell32_main.h
dlls/shell32/shell32_main.h
+1
-0
No files found.
dlls/shell32/shell32_main.c
View file @
dc60324d
...
...
@@ -410,13 +410,21 @@ DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
{
if
(
!
strcmp
(
"%1"
,
sTemp
))
/* icon is in the file */
strcpy
(
sTemp
,
path
);
IconNotYetLoaded
=
FALSE
;
/* FIXME: is it working correctly? */
PrivateExtractIconsA
(
sTemp
,
dwNr
,(
flags
&
SHGFI_LARGEICON
)
?
GetSystemMetrics
(
SM_CXICON
)
:
GetSystemMetrics
(
SM_CXSMICON
),
(
flags
&
SHGFI_LARGEICON
)
?
GetSystemMetrics
(
SM_CYICON
)
:
GetSystemMetrics
(
SM_CYSMICON
),
&
psfi
->
hIcon
,
0
,
1
,
0
);
if
(
flags
&
SHGFI_SYSICONINDEX
)
{
psfi
->
iIcon
=
SIC_GetIconIndex
(
sTemp
,
dwNr
);
if
(
psfi
->
iIcon
==
-
1
)
psfi
->
iIcon
=
0
;
}
else
{
IconNotYetLoaded
=
FALSE
;
PrivateExtractIconsA
(
sTemp
,
dwNr
,(
flags
&
SHGFI_LARGEICON
)
?
GetSystemMetrics
(
SM_CXICON
)
:
GetSystemMetrics
(
SM_CXSMICON
),
(
flags
&
SHGFI_LARGEICON
)
?
GetSystemMetrics
(
SM_CYICON
)
:
GetSystemMetrics
(
SM_CYSMICON
),
&
psfi
->
hIcon
,
0
,
1
,
0
);
psfi
->
iIcon
=
dwNr
;
}
}
}
}
...
...
dlls/shell32/shell32_main.h
View file @
dc60324d
...
...
@@ -54,6 +54,7 @@ BOOL WINAPI Shell_GetImageList(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList)
BOOL
SIC_Initialize
(
void
);
void
SIC_Destroy
(
void
);
BOOL
PidlToSicIndex
(
IShellFolder
*
sh
,
LPITEMIDLIST
pidl
,
BOOL
bBigIcon
,
UINT
uFlags
,
UINT
*
pIndex
);
INT
SIC_GetIconIndex
(
LPCSTR
sSourceFile
,
INT
dwSourceIndex
);
/* Classes Root */
BOOL
HCR_MapTypeToValue
(
LPCSTR
szExtension
,
LPSTR
szFileType
,
DWORD
len
,
BOOL
bPrependDot
);
...
...
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