mshtml: Use inner window directly in HTMLImageElementFactory implementation.

This commit is contained in:
Jacek Caban 2012-07-30 15:55:57 +02:00 committed by Alexandre Julliard
parent 7ff231d7fb
commit dce83a304d
1 changed files with 2 additions and 2 deletions

View File

@ -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;