mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:05:50 +00:00
correct error handling in SHELL32_ParseNextElement()
svn path=/trunk/; revision=9132
This commit is contained in:
parent
23a76b4fa1
commit
b1a7c433b7
1 changed files with 6 additions and 4 deletions
|
@ -122,10 +122,12 @@ HRESULT SHELL32_ParseNextElement (IShellFolder2 * psf, HWND hwndOwner, LPBC pbc,
|
|||
hr = IShellFolder_ParseDisplayName (psfChild, hwndOwner, pbc, szNext, pEaten, &pidlOut, pdwAttributes);
|
||||
IShellFolder_Release (psfChild);
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
pidlTemp = ILCombine (*pidlInOut, pidlOut);
|
||||
|
||||
if (!pidlTemp)
|
||||
hr = E_OUTOFMEMORY;
|
||||
}
|
||||
|
||||
if (pidlOut)
|
||||
ILFree (pidlOut);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue