From 25ee95cd5d21ed4439ac1bf78acd96ac5ce699b8 Mon Sep 17 00:00:00 2001 From: Gregg Mattinson Date: Tue, 16 Jul 2002 01:11:52 +0000 Subject: [PATCH] Initialized the pidlOut variable in SHELL32_ParseNextElement to prevent a crash in some cases. --- dlls/shell32/shlfolder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shlfolder.c b/dlls/shell32/shlfolder.c index 2ff801a2df0..e93db0234a8 100644 --- a/dlls/shell32/shlfolder.c +++ b/dlls/shell32/shlfolder.c @@ -119,7 +119,7 @@ static HRESULT SHELL32_ParseNextElement( DWORD *pdwAttributes) { HRESULT hr = E_OUTOFMEMORY; - LPITEMIDLIST pidlOut, pidlTemp = NULL; + LPITEMIDLIST pidlOut = NULL, pidlTemp = NULL; IShellFolder *psfChild; TRACE("(%p, %p, %s)\n",psf, pidlInOut ? *pidlInOut : NULL, debugstr_w(szNext));