ole32: Handle EnumElements() failure (Coverity).

This commit is contained in:
Nikolay Sivov 2015-06-27 20:25:52 +03:00 committed by Alexandre Julliard
parent c2ae34c54d
commit 64456de761
1 changed files with 6 additions and 1 deletions

View File

@ -2421,7 +2421,12 @@ static HRESULT deleteStorageContents(
/*
* Enumerate the elements
*/
IStorage_EnumElements( childStorage, 0, 0, 0, &elements);
hr = IStorage_EnumElements(childStorage, 0, 0, 0, &elements);
if (FAILED(hr))
{
IStorage_Release(childStorage);
return hr;
}
do
{