Commit b67b8e7a authored by Thuy Nguyen's avatar Thuy Nguyen Committed by Alexandre Julliard

Added a missing Release.

STGM_CREATE should translate to CREATE_ALWAYS.
parent 95af1a69
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment