[Wine-patches] [WINE School hack] mshtml: fix eterbugs #1677, #1994 in WINE School

Konstantin Kondratyuk =?iso-8859-1?q?kondratyuk_=CE=C1_etersoft=2Eru?=
Вт Окт 28 15:09:02 MSK 2008


Только (!!!) для WINE School

-- 
Best regards,
Konstantin Kondratyuk.
----------- следующая часть -----------
From 5e54f51d1386fea41cb41f203a75f5ee626142bb Mon Sep 17 00:00:00 2001
From: Konstantin Kondratyuk <kondratyuk на etersoft.ru>
Date: Tue, 28 Oct 2008 15:04:25 +0300
Subject: [PATCH] [WINE School hack] mshtml: fix eterbugs #1677, #1994 in WINE School

---
 dlls/mshtml/oleobj.c |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/dlls/mshtml/oleobj.c b/dlls/mshtml/oleobj.c
index 00f9357..71f5ba7 100644
--- a/dlls/mshtml/oleobj.c
+++ b/dlls/mshtml/oleobj.c
@@ -766,23 +766,16 @@ static ULONG WINAPI Info_Release(IProvideClassInfo* iface)
 static HRESULT WINAPI Info_GetClassInfo(IProvideClassInfo* iface, ITypeInfo **ppTI)
 {
     HTMLDocument *This = INFO_THIS(iface);
-    HRESULT hres;
 
     FIXME("(%p)->(%p)\n", This, ppTI);
 
-    hres = IDispatchEx_GetTypeInfo(DISPATCHEX(This), 0, 0, ppTI);
-    if (FAILED(hres)) {
-        FIXME("ERROR hres = %08x\n", hres);
-        return E_FAIL;
-    }
-    TRACE("returning %p\n",*ppTI);
-    ITypeInfo_AddRef(*ppTI);/**/
-
-#if 0
-    /*WRONG, BUT FIX BUG #1994 - disable hack (patch for eterbug #2105)*/
+    /* etersoft hack for eterbugs #1677, #1994
+       returning HTMLDocument* */
     *ppTI = (ITypeInfo*)HTMLDOC(This);
+
     ITypeInfo_AddRef(*ppTI);
-#endif
+
+    TRACE("returning %p\n",*ppTI);
 
     return S_OK;
 }
-- 
1.5.6.5.GIT



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