From b67b8e7a8440c9a0127e4aa873001523af0b8d08 Mon Sep 17 00:00:00 2001 From: Thuy Nguyen Date: Sun, 28 Feb 1999 09:55:46 +0000 Subject: [PATCH] Added a missing Release. STGM_CREATE should translate to CREATE_ALWAYS. --- ole/storage32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ole/storage32.c b/ole/storage32.c index 84835f172e9..549264e88a6 100644 --- a/ole/storage32.c +++ b/ole/storage32.c @@ -3085,6 +3085,7 @@ StorageInternalImpl* StorageInternalImpl_Construct( void StorageInternalImpl_Destroy( StorageInternalImpl* This) { + StorageBaseImpl_Release((IStorage*)This->ancestorStorage); HeapFree(GetProcessHeap(), 0, This); } @@ -5224,7 +5225,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm) BOOL bSTGM_FAILIFTHERE = ! (bSTGM_CREATE || bSTGM_CONVERT); if (bSTGM_CREATE) - dwCreationDistribution = CREATE_NEW; + dwCreationDistribution = CREATE_ALWAYS; else if (bSTGM_FAILIFTHERE) dwCreationDistribution = CREATE_NEW; else if (bSTGM_CONVERT)