Module: wine Branch: master Commit: 3eafe92ba31aa4369e652777762b0bd122fa39bb URL: http://source.winehq.org/git/wine.git/?a=commit;h=3eafe92ba31aa4369e65277776... Author: Gerald Pfeifer <gerald(a)pfeifer.com> Date: Thu Sep 8 01:08:56 2011 +0200 mshtml: Add failure detection to set_downloading_proc. --- 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 b73476b..2e2643f 100644 --- a/dlls/mshtml/persist.c +++ b/dlls/mshtml/persist.c @@ -179,7 +179,7 @@ static void set_downloading_proc(task_t *_task) IDropTarget *drop_target = NULL; hres = IDocHostUIHandler_GetDropTarget(doc->hostui, NULL /* FIXME */, &drop_target); - if(drop_target) { + if(SUCCEEDED(hres)) { FIXME("Use IDropTarget\n"); IDropTarget_Release(drop_target); }