Jacek Caban : mshtml: Use inner window directly in HTMLImageElementFactory implementation.

Alexandre Julliard julliard at winehq.org
Mon Jul 30 14:18:52 CDT 2012


Module: wine
Branch: master
Commit: dce83a304d98199d00afe22791242920b3e83fdb
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dce83a304d98199d00afe22791242920b3e83fdb

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Mon Jul 30 15:55:57 2012 +0200

mshtml: Use inner window directly in HTMLImageElementFactory implementation.

---

 dlls/mshtml/htmlimg.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mshtml/htmlimg.c b/dlls/mshtml/htmlimg.c
index be33a71..06c8b3d 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;
 




More information about the wine-cvs mailing list