mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[shell32]
- Do not use HIMAGELIST_QueryInterface which is exported from vista comctl32. The replacement code is taken from HIMAGELIST_QueryInterface and its fine to use it, as is safe to assume that an HIMAGELIST is a IImageList* - Allows us to use comctl32 5.82 from win2003 and boot to desktop svn path=/trunk/; revision=60879
This commit is contained in:
parent
72a70a3bb8
commit
362257a995
|
@ -2269,7 +2269,9 @@ EXTERN_C HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv)
|
||||||
/* Get the interface for the new image list */
|
/* Get the interface for the new image list */
|
||||||
if (hNew)
|
if (hNew)
|
||||||
{
|
{
|
||||||
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
IImageList *imageList = (IImageList*) hNew;
|
||||||
|
ret = imageList->QueryInterface(riid, ppv);
|
||||||
|
|
||||||
ImageList_Destroy(hNew);
|
ImageList_Destroy(hNew);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue