From 7efe6d98950d0ecba69a7da87e3600d166ceb9e7 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 26 May 2011 13:27:41 +0200 Subject: [PATCH] ole32: Delete the transacted storage scratch file on release. --- dlls/ole32/storage32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c index fa9c06f9ddb..44adaedae83 100644 --- a/dlls/ole32/storage32.c +++ b/dlls/ole32/storage32.c @@ -5062,7 +5062,7 @@ static HRESULT TransactedSnapshotImpl_Construct(StorageBaseImpl *parentStorage, (*result)->base.openFlags = parentStorage->openFlags; /* Create a new temporary storage to act as the scratch file. */ - hr = StgCreateDocfile(NULL, STGM_READWRITE|STGM_SHARE_EXCLUSIVE|STGM_CREATE, + hr = StgCreateDocfile(NULL, STGM_READWRITE|STGM_SHARE_EXCLUSIVE|STGM_CREATE|STGM_DELETEONRELEASE, 0, (IStorage**)&(*result)->scratch); if (SUCCEEDED(hr)) -- 2.11.4.GIT