Author: dquintana
Date: Sat Dec 20 16:20:32 2014
New Revision: 65759
URL:
http://svn.reactos.org/svn/reactos?rev=65759&view=rev
Log:
[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
Modified:
trunk/reactos/dll/win32/shell32/folders/CRecycleBin.cpp
Modified: trunk/reactos/dll/win32/shell32/folders/CRecycleBin.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/folders/…
==============================================================================
--- trunk/reactos/dll/win32/shell32/folders/CRecycleBin.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/folders/CRecycleBin.cpp [iso-8859-1] Sat Dec 20
16:20:32 2014
@@ -571,6 +571,20 @@
IDropTarget * pDt = NULL;
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;