mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
ole32: Add error checking to StorageBaseImpl_CreateStorage.
This commit is contained in:
parent
1fab6e3515
commit
d420a858da
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user