[SHELL32]

* Halfplement IExtractIconAW support into the recycle bin. This is not fully correct as it always uses the fallback file icon, but it's better than nothing at all.

CORE-3938

svn path=/trunk/; revision=65759
This commit is contained in:
David Quintana 2014-12-20 16:20:32 +00:00
parent 4b7ab83f8d
commit b6a4676eec

View file

@ -572,6 +572,20 @@ HRESULT WINAPI CRecycleBin::GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_C
hr = QueryInterface(IID_PPV_ARG(IDropTarget, &pDt));
pObj = pDt;
}
else if(IsEqualIID(riid, IID_IExtractIconA) && (cidl == 1))
{
LPITEMIDLIST pidlItem = ILCombine(pidl, apidl[0]);
pObj = IExtractIconA_Constructor(pidlItem);
SHFree(pidlItem);
hr = S_OK;
}
else if (IsEqualIID(riid, IID_IExtractIconW) && (cidl == 1))
{
LPITEMIDLIST pidlItem = ILCombine(pidl, apidl[0]);
pObj = IExtractIconW_Constructor(pidlItem);
SHFree(pidlItem);
hr = S_OK;
}
else
hr = E_NOINTERFACE;