Module: wine Branch: master Commit: 3950721c2d2ee70366d67370dd5930c1031867c0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3950721c2d2ee70366d67370dd...
Author: André Hentschel nerv@dawncrow.de Date: Fri Feb 10 19:40:59 2012 +0100
mshtml: Only release the interface if it exists.
---
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); }