From 39182135861ba20d92d8ec0181f76aae4a8c9e66 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Tue, 14 Aug 2012 11:28:50 +0200 Subject: [PATCH] mshtml: Use inner window's moniker in PluginHost implementation. --- dlls/mshtml/pluginhost.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index 07d6e3a99cf..e24131b34b5 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -534,12 +534,12 @@ static HRESULT WINAPI PHClientSite_GetMoniker(IOleClientSite *iface, DWORD dwAss switch(dwWhichMoniker) { 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"); return E_UNEXPECTED; } - *ppmk = This->doc->basedoc.window->mon; + *ppmk = This->doc->window->mon; IMoniker_AddRef(*ppmk); break; default: @@ -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); - 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"); 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, -- 2.11.4.GIT