Added a missing Release.

STGM_CREATE should translate to CREATE_ALWAYS.
This commit is contained in:
Thuy Nguyen 1999-02-28 09:55:46 +00:00 committed by Alexandre Julliard
parent 95af1a6971
commit b67b8e7a84
1 changed files with 2 additions and 1 deletions

View File

@ -3085,6 +3085,7 @@ StorageInternalImpl* StorageInternalImpl_Construct(
void StorageInternalImpl_Destroy( void StorageInternalImpl_Destroy(
StorageInternalImpl* This) StorageInternalImpl* This)
{ {
StorageBaseImpl_Release((IStorage*)This->ancestorStorage);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
} }
@ -5224,7 +5225,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm)
BOOL bSTGM_FAILIFTHERE = ! (bSTGM_CREATE || bSTGM_CONVERT); BOOL bSTGM_FAILIFTHERE = ! (bSTGM_CREATE || bSTGM_CONVERT);
if (bSTGM_CREATE) if (bSTGM_CREATE)
dwCreationDistribution = CREATE_NEW; dwCreationDistribution = CREATE_ALWAYS;
else if (bSTGM_FAILIFTHERE) else if (bSTGM_FAILIFTHERE)
dwCreationDistribution = CREATE_NEW; dwCreationDistribution = CREATE_NEW;
else if (bSTGM_CONVERT) else if (bSTGM_CONVERT)