Commit 16901659 authored by Fabian Maurer's avatar Fabian Maurer Committed by Alexandre Julliard

shell32: Refactor to keep style consistent.

parent d98646f9
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment