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

This commit is contained in:
Jacek Caban 2008-10-10 15:47:54 -05:00 committed by Alexandre Julliard
parent 5e7cf7987f
commit b5aa4dd8e6
1 changed files with 3 additions and 0 deletions

View File

@ -168,6 +168,9 @@ void notif_focus(HTMLDocument *This)
IOleControlSite *site;
HRESULT hres;
if(!This->client)
return;
hres = IOleClientSite_QueryInterface(This->client, &IID_IOleControlSite, (void**)&site);
if(FAILED(hres))
return;