From dce83a304d98199d00afe22791242920b3e83fdb Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 30 Jul 2012 15:55:57 +0200 Subject: [PATCH] mshtml: Use inner window directly in HTMLImageElementFactory implementation. --- dlls/mshtml/htmlimg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/mshtml/htmlimg.c b/dlls/mshtml/htmlimg.c index be33a71159f..06c8b3db5b5 100644 --- a/dlls/mshtml/htmlimg.c +++ b/dlls/mshtml/htmlimg.c @@ -809,12 +809,12 @@ static HRESULT WINAPI HTMLImageElementFactory_create(IHTMLImageElementFactory *i TRACE("(%p)->(%s %s %p)\n", This, debugstr_variant(&width), debugstr_variant(&height), img_elem); - if(!This->window || !This->window->base.inner_window->doc) { + if(!This->window || !This->window->doc) { WARN("NULL doc\n"); return E_UNEXPECTED; } - doc = This->window->base.inner_window->doc; + doc = This->window->doc; *img_elem = NULL;