mshtml: Return error in IInternetHostSecurityManager calls on detached documents.
This commit is contained in:
parent
e5baa75034
commit
58aa5471a5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue