mshtml: Don't crash in notif_focus if client is NULL.
authorJacek Caban <jacek@codeweavers.com>
Fri, 10 Oct 2008 20:47:54 +0000 (15:47 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 13 Oct 2008 09:16:27 +0000 (11:16 +0200)
dlls/mshtml/view.c

index bba0f23029037431f9e3c134a7e31f968a4f2114..6bc5e929ca6f2cc5216d26930ec5f1fbac2f746d 100644 (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;