Commit 75fe6211 authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

ole32: Create internal storage objects with a refcount of 1.

For consistency with StorageImpl_Construct.
parent cb076db8
...@@ -595,8 +595,6 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage( ...@@ -595,8 +595,6 @@ static HRESULT WINAPI StorageBaseImpl_OpenStorage(
{ {
*ppstg = (IStorage*)newStorage; *ppstg = (IStorage*)newStorage;
StorageBaseImpl_AddRef(*ppstg);
list_add_tail(&This->storageHead, &newStorage->ParentListEntry); list_add_tail(&This->storageHead, &newStorage->ParentListEntry);
res = S_OK; res = S_OK;
...@@ -4382,6 +4380,8 @@ static StorageInternalImpl* StorageInternalImpl_Construct( ...@@ -4382,6 +4380,8 @@ static StorageInternalImpl* StorageInternalImpl_Construct(
newStorage->base.reverted = 0; newStorage->base.reverted = 0;
newStorage->base.ref = 1;
newStorage->parentStorage = parentStorage; newStorage->parentStorage = parentStorage;
/* /*
......
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