Alexandre Julliard : shdocvw: Delete the temporary storage file on release.

Alexandre Julliard julliard at winehq.org
Thu May 26 10:56:25 CDT 2011


Module: wine
Branch: master
Commit: 2e1736d0eb38e60e76a68e50d96ddabc29a308b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e1736d0eb38e60e76a68e50d96ddabc29a308b5

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu May 26 13:27:55 2011 +0200

shdocvw: Delete the temporary storage file on release.

---

 dlls/shdocvw/intshcut.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/shdocvw/intshcut.c b/dlls/shdocvw/intshcut.c
index 4a2dd6a..f83aa52 100644
--- a/dlls/shdocvw/intshcut.c
+++ b/dlls/shdocvw/intshcut.c
@@ -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");




More information about the wine-cvs mailing list