Vincent Povirk : ole32: Create internal storage objects with a refcount of 1.
Alexandre Julliard
julliard at winehq.org
Fri Dec 11 11:04:45 CST 2009
Module: wine
Branch: master
Commit: 75fe621192c07de5e54fee3e566c3f798e9f1d29
URL: http://source.winehq.org/git/wine.git/?a=commit;h=75fe621192c07de5e54fee3e566c3f798e9f1d29
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Wed Dec 2 11:03:36 2009 -0600
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;
/*
More information about the wine-cvs
mailing list