ole32: Delete the transacted storage scratch file on release.
This commit is contained in:
parent
57765b8c30
commit
7efe6d9895
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue