Commit 64456de7 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

ole32: Handle EnumElements() failure (Coverity).

parent c2ae34c5
......@@ -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
{
......
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