Jacek Caban : mshtml: Return error in IInternetHostSecurityManager calls on detached documents.
Module: wine Branch: master Commit: 58aa5471a50a1e3606e0acf2192019d7b791cc79 URL: http://source.winehq.org/git/wine.git/?a=commit;h=58aa5471a50a1e3606e0acf219... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Wed Jan 18 13:40:43 2012 +0100 mshtml: Return error in IInternetHostSecurityManager calls on detached documents. --- dlls/mshtml/secmgr.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/secmgr.c b/dlls/mshtml/secmgr.c index a2005aa..ff349ac 100644 --- a/dlls/mshtml/secmgr.c +++ b/dlls/mshtml/secmgr.c @@ -80,6 +80,9 @@ static HRESULT WINAPI InternetHostSecurityManager_ProcessUrlAction(IInternetHost TRACE("(%p)->(%d %p %d %p %d %x %x)\n", This, dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved); + if(!This->basedoc.window) + return E_UNEXPECTED; + url = This->basedoc.window->url ? This->basedoc.window->url : about_blankW; return IInternetSecurityManager_ProcessUrlAction(This->basedoc.window->secmgr, url, dwAction, pPolicy, cbPolicy, @@ -184,6 +187,9 @@ static HRESULT WINAPI InternetHostSecurityManager_QueryCustomPolicy(IInternetHos TRACE("(%p)->(%s %p %p %p %d %x)\n", This, debugstr_guid(guidKey), ppPolicy, pcbPolicy, pContext, cbContext, dwReserved); + if(!This->basedoc.window) + return E_UNEXPECTED; + url = This->basedoc.window->url ? This->basedoc.window->url : about_blankW; hres = IInternetSecurityManager_QueryCustomPolicy(This->basedoc.window->secmgr, url, guidKey, ppPolicy, pcbPolicy,
participants (1)
-
Alexandre Julliard