Commit 39182135 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use inner window's moniker in PluginHost implementation.

parent 1a25ed26
...@@ -534,12 +534,12 @@ static HRESULT WINAPI PHClientSite_GetMoniker(IOleClientSite *iface, DWORD dwAss ...@@ -534,12 +534,12 @@ static HRESULT WINAPI PHClientSite_GetMoniker(IOleClientSite *iface, DWORD dwAss
switch(dwWhichMoniker) { switch(dwWhichMoniker) {
case OLEWHICHMK_CONTAINER: case OLEWHICHMK_CONTAINER:
if(!This->doc || !This->doc->basedoc.window || !This->doc->basedoc.window->mon) { if(!This->doc || !This->doc->window || !This->doc->window->mon) {
FIXME("no moniker\n"); FIXME("no moniker\n");
return E_UNEXPECTED; return E_UNEXPECTED;
} }
*ppmk = This->doc->basedoc.window->mon; *ppmk = This->doc->window->mon;
IMoniker_AddRef(*ppmk); IMoniker_AddRef(*ppmk);
break; break;
default: default:
...@@ -1144,12 +1144,12 @@ static HRESULT WINAPI PHBindHost_CreateMoniker(IBindHost *iface, LPOLESTR szName ...@@ -1144,12 +1144,12 @@ static HRESULT WINAPI PHBindHost_CreateMoniker(IBindHost *iface, LPOLESTR szName
TRACE("(%p)->(%s %p %p %x)\n", This, debugstr_w(szName), pBC, ppmk, dwReserved); TRACE("(%p)->(%s %p %p %x)\n", This, debugstr_w(szName), pBC, ppmk, dwReserved);
if(!This->doc || !This->doc->basedoc.window || !This->doc->basedoc.window->mon) { if(!This->doc || !This->doc->window || !This->doc->window->mon) {
FIXME("no moniker\n"); FIXME("no moniker\n");
return E_UNEXPECTED; return E_UNEXPECTED;
} }
return CreateURLMoniker(This->doc->basedoc.window->mon, szName, ppmk); return CreateURLMoniker(This->doc->window->mon, szName, ppmk);
} }
static HRESULT WINAPI PHBindHost_MonikerBindToStorage(IBindHost *iface, IMoniker *pMk, IBindCtx *pBC, static HRESULT WINAPI PHBindHost_MonikerBindToStorage(IBindHost *iface, IMoniker *pMk, IBindCtx *pBC,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment