correct error handling in SHELL32_ParseNextElement()

svn path=/trunk/; revision=9132
This commit is contained in:
Martin Fuchs 2004-04-13 20:55:45 +00:00
parent 23a76b4fa1
commit b1a7c433b7

View file

@ -122,10 +122,12 @@ HRESULT SHELL32_ParseNextElement (IShellFolder2 * psf, HWND hwndOwner, LPBC pbc,
hr = IShellFolder_ParseDisplayName (psfChild, hwndOwner, pbc, szNext, pEaten, &pidlOut, pdwAttributes); hr = IShellFolder_ParseDisplayName (psfChild, hwndOwner, pbc, szNext, pEaten, &pidlOut, pdwAttributes);
IShellFolder_Release (psfChild); IShellFolder_Release (psfChild);
if (SUCCEEDED(hr)) {
pidlTemp = ILCombine (*pidlInOut, pidlOut); pidlTemp = ILCombine (*pidlInOut, pidlOut);
if (!pidlTemp) if (!pidlTemp)
hr = E_OUTOFMEMORY; hr = E_OUTOFMEMORY;
}
if (pidlOut) if (pidlOut)
ILFree (pidlOut); ILFree (pidlOut);