Commit 9157c6d6 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Return NULL in window object's GetNameSpaceParent.

parent 45eba140
......@@ -1127,7 +1127,8 @@ static HRESULT WINAPI WindowDispEx_GetNameSpaceParent(IDispatchEx *iface, IUnkno
TRACE("(%p)->(%p)\n", This, ppunk);
return IDispatchEx_GetNameSpaceParent(DISPATCHEX(&This->dispex), ppunk);
*ppunk = NULL;
return S_OK;
}
#undef DISPEX_THIS
......
......@@ -439,6 +439,7 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac
DWORD dwFlags, VARIANT *pvarResult, EXCEPINFO *pexcepinfo)
{
IDispatchEx *document;
IUnknown *unk;
VARIANT var;
DISPPARAMS dp;
EXCEPINFO ei;
......@@ -510,6 +511,12 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac
ok(V_I4(&var) == 100, "V_I4(&var) == NULL\n");
IDispatchEx_Release(document);
unk = (void*)0xdeadbeef;
hres = IDispatchEx_GetNameSpaceParent(window_dispex, &unk);
ok(hres == S_OK, "GetNameSpaceParent failed: %08x\n", hres);
ok(!unk, "unk=%p, expected NULL\n", unk);
return S_OK;
}
......
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