Author: gadamopoulos
Date: Mon Nov 11 17:49:30 2013
New Revision: 60945
URL:
http://svn.reactos.org/svn/reactos?rev=60945&view=rev
Log:
[shell32]
- Fix a couple of bugs I introduced in latest commit
Modified:
trunk/reactos/dll/win32/shell32/shlfolder.cpp
Modified: trunk/reactos/dll/win32/shell32/shlfolder.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/shlfolde…
==============================================================================
--- trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/shlfolder.cpp [iso-8859-1] Mon Nov 11 17:49:30 2013
@@ -171,7 +171,7 @@
LPCITEMIDLIST pidlChild, REFCLSID clsid, LPVOID * ppvOut)
{
HRESULT hr;
- IShellFolder* pShellFolder;
+ IShellFolder* pShellFolder = NULL;
TRACE ("%p %s %p\n", pidlRoot, debugstr_w(pathRoot), pidlChild);
@@ -218,9 +218,10 @@
}
ILFree (pidlAbsolute);
}
+
+ *ppvOut = pShellFolder;
+
TRACE ("-- (%p) ret=0x%08x\n", *ppvOut, hr);
-
- *ppvOut = pShellFolder;
return hr;
}