[Wine-patches] [Eterhack] mshtml: Our realisation of HTMLDocument_open (fix eterbug #993)

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Пт Окт 31 15:13:33 MSK 2008


-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 19de019bb3303e676e318741ef5dbb9a433e47e8 Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Fri, 31 Oct 2008 15:07:35 +0300
Subject: [PATCH] [Eterhack] mshtml: Our realisation of HTMLDocument_open (fix eterbug #993)

---
 dlls/mshtml/htmldoc.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 7948714..910f73f 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -811,6 +811,12 @@ static HRESULT WINAPI HTMLDocument_writeln(IHTMLDocument2 *iface, SAFEARRAY *psa
 static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT name,
                         VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
 {
+    /* Etersoft hack for eterbug #993 
+     * change realisation of function
+     */
+    TRACE("(%p)->(%s %p)\n", iface, debugstr_w(url), pomWindowResult);
+    return IHTMLDocument2_QueryInterface(iface, &IID_IDispatch, (void**)pomWindowResult);
+#if 0
     HTMLDocument *This = HTMLDOC_THIS(iface);
     nsresult nsres;
 
@@ -837,6 +843,7 @@ static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT
     *pomWindowResult = (IDispatch*)HTMLWINDOW2(This->window);
     IHTMLWindow2_AddRef(HTMLWINDOW2(This->window));
     return S_OK;
+#endif
 }
 
 static HRESULT WINAPI HTMLDocument_close(IHTMLDocument2 *iface)
-- 
1.5.6.5.GIT



Подробная информация о списке рассылки Wine-patches