Jacek Caban : mshtml: Don't crash in notif_focus if client is NULL.
Module: wine Branch: master Commit: b5aa4dd8e6b5ee2120a88168b41fe08e95f8c8b0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5aa4dd8e6b5ee2120a88168b4... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Oct 10 15:47:54 2008 -0500 mshtml: Don't crash in notif_focus if client is NULL. --- dlls/mshtml/view.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/view.c b/dlls/mshtml/view.c index bba0f23..6bc5e92 100644 --- a/dlls/mshtml/view.c +++ b/dlls/mshtml/view.c @@ -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;
participants (1)
-
Alexandre Julliard