[SHELL32] Fix a crash in shell32:shelldispatch by returning an empty CFolderItems...
authorMark Jansen <mark.jansen@reactos.org>
Sun, 21 Aug 2016 18:48:48 +0000 (18:48 +0000)
committerMark Jansen <mark.jansen@reactos.org>
Sun, 21 Aug 2016 18:48:48 +0000 (18:48 +0000)
svn path=/trunk/; revision=72415

reactos/dll/win32/shell32/CFolder.cpp

index 37f6499..c7e8c2d 100644 (file)
@@ -82,8 +82,10 @@ HRESULT STDMETHODCALLTYPE CFolder::get_ParentFolder(Folder **ppsf)
 
 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)