Author: mjansen
Date: Sun Aug 21 18:48:48 2016
New Revision: 72415

URL: http://svn.reactos.org/svn/reactos?rev=72415&view=rev
Log:
[SHELL32] Fix a crash in shell32:shelldispatch by returning an empty 
CFolderItems object instead of nothing.

Modified:
    trunk/reactos/dll/win32/shell32/CFolder.cpp

Modified: trunk/reactos/dll/win32/shell32/CFolder.cpp
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CFolder.cpp?rev=72415&r1=72414&r2=72415&view=diff
==============================================================================
--- trunk/reactos/dll/win32/shell32/CFolder.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/CFolder.cpp [iso-8859-1] Sun Aug 21 
18:48:48 2016
@@ -82,8 +82,10 @@
 
 HRESULT STDMETHODCALLTYPE CFolder::Items(FolderItems **ppid)
 {
-    TRACE("(%p, %p)\n", this, ppid);
-    return E_NOTIMPL;
+    CFolderItems* item = new CComObject<CFolderItems>();
+    item->AddRef();
+    *ppid = item;
+    return S_OK;
 }
 
 HRESULT STDMETHODCALLTYPE CFolder::ParseName(BSTR bName, FolderItem **ppid)


Reply via email to