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
0075b05a
Commit
0075b05a
authored
Mar 21, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Move SHGetImageList() to related source file.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
09389c4b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
28 deletions
+27
-28
iconcache.c
dlls/shell32/iconcache.c
+27
-0
shellord.c
dlls/shell32/shellord.c
+0
-28
No files found.
dlls/shell32/iconcache.c
View file @
0075b05a
...
@@ -1022,3 +1022,30 @@ HRESULT WINAPI SHGetStockIconInfo(SHSTOCKICONID id, UINT flags, SHSTOCKICONINFO
...
@@ -1022,3 +1022,30 @@ HRESULT WINAPI SHGetStockIconInfo(SHSTOCKICONID id, UINT flags, SHSTOCKICONINFO
return
S_OK
;
return
S_OK
;
}
}
/*************************************************************************
* SHGetImageList (SHELL32.727)
*
* Returns a copy of a shell image list.
*
* NOTES
* Windows XP features 4 sizes of image list, and Vista 5. Wine currently
* only supports the traditional small and large image lists, so requests
* for the others will currently fail.
*/
HRESULT
WINAPI
SHGetImageList
(
int
iImageList
,
REFIID
riid
,
void
**
ppv
)
{
/* Wine currently only maintains large and small image lists */
if
((
iImageList
!=
SHIL_LARGE
)
&&
(
iImageList
!=
SHIL_SMALL
)
&&
(
iImageList
!=
SHIL_SYSSMALL
))
{
FIXME
(
"Unsupported image list %i requested
\n
"
,
iImageList
);
return
E_FAIL
;
}
InitOnceExecuteOnce
(
&
sic_init_once
,
SIC_Initialize
,
NULL
,
NULL
);
if
(
iImageList
==
SHIL_SYSSMALL
)
iImageList
=
SHIL_SMALL
;
return
HIMAGELIST_QueryInterface
(
shell_imagelists
[
iImageList
],
riid
,
ppv
);
}
dlls/shell32/shellord.c
View file @
0075b05a
...
@@ -2133,31 +2133,3 @@ BOOL WINAPI LinkWindow_UnregisterClass(void)
...
@@ -2133,31 +2133,3 @@ BOOL WINAPI LinkWindow_UnregisterClass(void)
void
WINAPI
SHFlushSFCache
(
void
)
void
WINAPI
SHFlushSFCache
(
void
)
{
{
}
}
/*************************************************************************
* SHGetImageList (SHELL32.727)
*
* Returns a copy of a shell image list.
*
* NOTES
* Windows XP features 4 sizes of image list, and Vista 5. Wine currently
* only supports the traditional small and large image lists, so requests
* for the others will currently fail.
*/
HRESULT
WINAPI
SHGetImageList
(
int
iImageList
,
REFIID
riid
,
void
**
ppv
)
{
HIMAGELIST
hLarge
,
hSmall
;
HIMAGELIST
hNew
;
/* Wine currently only maintains large and small image lists */
if
((
iImageList
!=
SHIL_LARGE
)
&&
(
iImageList
!=
SHIL_SMALL
)
&&
(
iImageList
!=
SHIL_SYSSMALL
))
{
FIXME
(
"Unsupported image list %i requested
\n
"
,
iImageList
);
return
E_FAIL
;
}
Shell_GetImageLists
(
&
hLarge
,
&
hSmall
);
hNew
=
(
iImageList
==
SHIL_LARGE
)
?
hLarge
:
hSmall
;
return
HIMAGELIST_QueryInterface
(
hNew
,
riid
,
ppv
);
}
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