From a369d5e733684f30726e657d3d6a7ec0fd8e1673 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 30 Nov 2009 18:02:25 +0100 Subject: [PATCH] mshtml: Added IHTMLFrameBase2::get_readyState implementation. --- dlls/mshtml/htmlframebase.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlframebase.c b/dlls/mshtml/htmlframebase.c index d209d7b97f3..cda68499db1 100644 --- a/dlls/mshtml/htmlframebase.c +++ b/dlls/mshtml/htmlframebase.c @@ -351,8 +351,15 @@ static HRESULT WINAPI HTMLFrameBase2_get_onreadystatechange(IHTMLFrameBase2 *ifa static HRESULT WINAPI HTMLFrameBase2_get_readyState(IHTMLFrameBase2 *iface, BSTR *p) { HTMLFrameBase *This = HTMLFRAMEBASE2_THIS(iface); - FIXME("(%p)->(%p)\n", This, p); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, p); + + if(!This->content_window || !This->content_window->doc) { + FIXME("no document associated\n"); + return E_FAIL; + } + + return IHTMLDocument2_get_readyState(HTMLDOC(&This->content_window->doc->basedoc), p); } static HRESULT WINAPI HTMLFrameBase2_put_allowTransparency(IHTMLFrameBase2 *iface, VARIANT_BOOL v)