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
8c449a58
Commit
8c449a58
authored
Dec 18, 1998
by
Juergen Schmied
Committed by
Alexandre Julliard
Dec 18, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHGetFileInfo32A: get SHGFI_SYSICONINDEX implemented.
parent
edfca5b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
shell32_main.c
dlls/shell32/shell32_main.c
+25
-19
No files found.
dlls/shell32/shell32_main.c
View file @
8c449a58
...
...
@@ -104,20 +104,23 @@ void WINAPI Control_RunDLL( HWND32 hwnd, LPCVOID code, LPCSTR cmd, DWORD arg4 )
DWORD
WINAPI
SHGetFileInfo32A
(
LPCSTR
path
,
DWORD
dwFileAttributes
,
SHFILEINFO32A
*
psfi
,
UINT32
sizeofpsfi
,
UINT32
flags
)
{
CHAR
szTemp
[
MAX_PATH
];
{
CHAR
szTemp
[
MAX_PATH
];
LPPIDLDATA
pData
;
DWORD
ret
=
0
;
LPITEMIDLIST
pPidlTemp
=
NULL
;
DWORD
ret
=
0
;
TRACE
(
shell
,
"(%s,0x%lx,%p,0x%x,0x%x)
\n
"
,
path
,
dwFileAttributes
,
psfi
,
sizeofpsfi
,
flags
);
/* translate the pidl to a path*/
if
(
flags
&
SHGFI_PIDL
)
{
SHGetPathFromIDList32A
((
LPCITEMIDLIST
)
path
,
szTemp
);
TRACE
(
shell
,
"pidl=%p is %s
\n
"
,
path
,
szTemp
);
{
pPidlTemp
=
(
LPCITEMIDLIST
)
path
;
SHGetPathFromIDList32A
(
pPidlTemp
,
szTemp
);
TRACE
(
shell
,
"pidl=%p is %s
\n
"
,
path
,
szTemp
);
}
else
{
TRACE
(
shell
,
"path=%p
\n
"
,
path
);
{
strcpy
(
szTemp
,
path
);
TRACE
(
shell
,
"path=%s
\n
"
,
szTemp
);
}
if
(
flags
&
SHGFI_ATTRIBUTES
)
...
...
@@ -188,21 +191,24 @@ DWORD WINAPI SHGetFileInfo32A(LPCSTR path,DWORD dwFileAttributes,
}
}
if
(
flags
&
SHGFI_SYSICONINDEX
)
{
FIXME
(
shell
,
"get the SYSICONINDEX
\n
"
);
psfi
->
iIcon
=
32
;
if
(
flags
&
SHGFI_SMALLICON
)
{
TRACE
(
shell
,
"set to small icon
\n
"
);
ret
=
(
DWORD
)
ShellSmallIconList
;
}
else
{
TRACE
(
shell
,
"set to big icon
\n
"
);
ret
=
(
DWORD
)
ShellBigIconList
;
}
}
if
(
flags
&
SHGFI_SYSICONINDEX
)
{
if
(
!
pPidlTemp
)
{
pPidlTemp
=
ILCreateFromPath
(
szTemp
);
}
psfi
->
iIcon
=
SHMapPIDLToSystemImageListIndex
(
NULL
,
pPidlTemp
,
0
);
TRACE
(
shell
,
"-- SYSICONINDEX %i
\n
"
,
psfi
->
iIcon
);
return
ret
;
if
(
flags
&
SHGFI_SMALLICON
)
{
TRACE
(
shell
,
"set to small icon
\n
"
);
ret
=
(
DWORD
)
ShellSmallIconList
;
}
else
{
TRACE
(
shell
,
"set to big icon
\n
"
);
ret
=
(
DWORD
)
ShellBigIconList
;
}
}
return
ret
;
}
/*************************************************************************
...
...
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