ole32: Delete the transacted storage scratch file on release.

This commit is contained in:
Alexandre Julliard 2011-05-26 13:27:41 +02:00
parent 57765b8c30
commit 7efe6d9895
1 changed files with 1 additions and 1 deletions

View File

@ -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))