mshtml: Only release the interface if it exists

André Hentschel nerv at dawncrow.de
Fri Feb 10 12:40:59 CST 2012


see http://bugs.winehq.org/show_bug.cgi?id=29046

---
 dlls/mshtml/persist.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/mshtml/persist.c b/dlls/mshtml/persist.c
index f131062..2e69902 100644
--- a/dlls/mshtml/persist.c
+++ b/dlls/mshtml/persist.c
@@ -268,7 +268,7 @@ static void set_downloading_proc(task_t *_task)
         IDropTarget *drop_target = NULL;
 
         hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target);
-        if(SUCCEEDED(hres)) {
+        if(SUCCEEDED(hres) && drop_target) {
             FIXME("Use IDropTarget\n");
             IDropTarget_Release(drop_target);
         }
-- 

Best Regards, André Hentschel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Nachrichtenteil als Anhang
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20120210/52bd0140/attachment.ksh>


More information about the wine-patches mailing list