Jacek Caban : mshtml: Release IOleCommandTarget in
IPersistMoniker::Load.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 8 07:17:13 CST 2007
Module: wine
Branch: master
Commit: bf6d0f2272ae5c5e1cde2111d5ffa79d3e578c92
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf6d0f2272ae5c5e1cde2111d5ffa79d3e578c92
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Mar 8 13:36:53 2007 +0100
mshtml: Release IOleCommandTarget in IPersistMoniker::Load.
---
dlls/mshtml/persist.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c
index 39c3a7e..2d61432 100644
--- a/dlls/mshtml/persist.c
+++ b/dlls/mshtml/persist.c
@@ -217,6 +217,8 @@ static HRESULT WINAPI PersistMoniker_Load(IPersistMoniker *iface, BOOL fFullyAva
V_VT(&var) = VT_I4;
V_I4(&var) = 0;
IOleCommandTarget_Exec(cmdtrg, &CGID_ShellDocView, 37, 0, &var, NULL);
+
+ IOleCommandTarget_Release(cmdtrg);
}
}
@@ -532,7 +534,7 @@ static HRESULT WINAPI PersistStreamInit_Save(IPersistStreamInit *iface, LPSTREAM
nsAString_Finish(&nsstr);
- ERR("%s\n", debugstr_a(str));
+ TRACE("%s\n", debugstr_a(str));
hres = IStream_Write(pStm, str, len, &written);
if(FAILED(hres))
More information about the wine-cvs
mailing list