Module: wine Branch: master Commit: 0f9ba2b71c9917c0700100a63f07dd7fefaf112f URL: http://source.winehq.org/git/wine.git/?a=commit;h=0f9ba2b71c9917c0700100a63f... Author: Huw Davies <huw(a)codeweavers.com> Date: Wed May 11 19:18:54 2011 +0100 shdocvw: Cope with being called without an active document. --- dlls/shdocvw/dochost.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/shdocvw/dochost.c b/dlls/shdocvw/dochost.c index edbd3c2..301ea32 100644 --- a/dlls/shdocvw/dochost.c +++ b/dlls/shdocvw/dochost.c @@ -326,6 +326,8 @@ void deactivate_document(DocHost *This) IHlinkTarget *hlink = NULL; HRESULT hres; + if(!This->document) return; + if(This->doc_navigate) { IUnknown_Release(This->doc_navigate); This->doc_navigate = NULL;