Commit dce83a30 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Use inner window directly in HTMLImageElementFactory implementation.

parent 7ff231d7
......@@ -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;
......
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