From 50007a0dd0122c7e8be76b58837621236b358ca7 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 2 Dec 2009 11:03:36 -0600 Subject: [PATCH 1/6] ole32: Create internal storage objects with a refcount of 1. For consistency with StorageImpl_Construct. --- dlls/ole32/storage32.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index eaddcbf..f9f8e87 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -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; /* -- 1.6.3.3