shdocvw: Delete the temporary storage file on release.

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

View File

@ -816,7 +816,8 @@ static InternetShortcut *create_shortcut(void)
newshortcut->IPersistFile_iface.lpVtbl = &persistFileVtbl;
newshortcut->IPropertySetStorage_iface.lpVtbl = &propertySetStorageVtbl;
newshortcut->refCount = 0;
hr = StgCreateStorageEx(NULL, STGM_CREATE | STGM_READWRITE | STGM_SHARE_EXCLUSIVE, STGFMT_STORAGE, 0, NULL, NULL, &IID_IPropertySetStorage, (void **) &newshortcut->property_set_storage);
hr = StgCreateStorageEx(NULL, STGM_CREATE | STGM_READWRITE | STGM_SHARE_EXCLUSIVE | STGM_DELETEONRELEASE,
STGFMT_STORAGE, 0, NULL, NULL, &IID_IPropertySetStorage, (void **) &newshortcut->property_set_storage);
if FAILED(hr)
{
TRACE("Failed to create the storage object needed for the shortcut.\n");