Module: wine Branch: master Commit: 75fe621192c07de5e54fee3e566c3f798e9f1d29 URL: http://source.winehq.org/git/wine.git/?a=commit;h=75fe621192c07de5e54fee3e56...
Author: Vincent Povirk vincent@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;
/*