shell32: Refactor to keep style consistent.

Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Fabian Maurer 2022-04-26 21:03:20 +02:00 committed by Alexandre Julliard
parent d98646f915
commit 1690165958
1 changed files with 5 additions and 8 deletions

View File

@ -1336,16 +1336,13 @@ HRESULT WINAPI SHCreateShellItemArray(PCIDLIST_ABSOLUTE pidlParent,
if(SUCCEEDED(ret))
{
ret = create_shellitemarray(array, cidl, ppsiItemArray);
if(SUCCEEDED(ret))
{
heap_free(array);
return ret;
}
}
/* Something failed, clean up. */
for(i = 0; i < cidl; i++)
if(array[i]) IShellItem_Release(array[i]);
if(FAILED(ret))
{
for(i = 0; i < cidl; i++)
if(array[i]) IShellItem_Release(array[i]);
}
heap_free(array);
return ret;
}