mshtml: Don't crash in notif_focus if client is NULL.
This commit is contained in:
parent
5e7cf7987f
commit
b5aa4dd8e6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue