ole32: Create internal storage objects with a refcount of 1.
For consistency with StorageImpl_Construct.
This commit is contained in:
parent
cb076db8cc
commit
75fe621192
|
@ -595,8 +595,6 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
|
|||
{
|
||||
*ppstg = (IStorage*)newStorage;
|
||||
|
||||
StorageBaseImpl_AddRef(*ppstg);
|
||||
|
||||
list_add_tail(&This->storageHead, &newStorage->ParentListEntry);
|
||||
|
||||
res = S_OK;
|
||||
|
@ -4382,6 +4380,8 @@ static StorageInternalImpl* StorageInternalImpl_Construct(
|
|||
|
||||
newStorage->base.reverted = 0;
|
||||
|
||||
newStorage->base.ref = 1;
|
||||
|
||||
newStorage->parentStorage = parentStorage;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue