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

For consistency with StorageImpl_Construct.
This commit is contained in:
Vincent Povirk 2009-12-02 11:03:36 -06:00 committed by Alexandre Julliard
parent cb076db8cc
commit 75fe621192
1 changed files with 2 additions and 2 deletions

View File

@ -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;
/*