Commit d420a858 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Add error checking to StorageBaseImpl_CreateStorage.

parent 1fab6e35
......@@ -1132,15 +1132,22 @@ static HRESULT WINAPI StorageBaseImpl_CreateStorage(
/*
* Create a new directory entry for the storage
*/
StorageBaseImpl_CreateDirEntry(This, &newEntry, &newEntryRef);
hr = StorageBaseImpl_CreateDirEntry(This, &newEntry, &newEntryRef);
if (FAILED(hr))
return hr;
/*
* Insert the new directory entry into the parent storage's tree
*/
insertIntoTree(
hr = insertIntoTree(
This,
This->storageDirEntry,
newEntryRef);
if (FAILED(hr))
{
StorageBaseImpl_DestroyDirEntry(This, newEntryRef);
return hr;
}
/*
* Open it to get a pointer to return.
......
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