Commit b5aa4dd8 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Don't crash in notif_focus if client is NULL.

parent 5e7cf798
...@@ -168,6 +168,9 @@ void notif_focus(HTMLDocument *This) ...@@ -168,6 +168,9 @@ void notif_focus(HTMLDocument *This)
IOleControlSite *site; IOleControlSite *site;
HRESULT hres; HRESULT hres;
if(!This->client)
return;
hres = IOleClientSite_QueryInterface(This->client, &IID_IOleControlSite, (void**)&site); hres = IOleClientSite_QueryInterface(This->client, &IID_IOleControlSite, (void**)&site);
if(FAILED(hres)) if(FAILED(hres))
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment