[Patch] dlls/oleaut32/typelib.c - fix kazaalite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On upgrading to Wine 20030618/20030709 I found that kazaa lite will no longer
work
and gave me the following error:

No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHDOCVW.DLL'
(0x71000000)
Unhandled exception: page fault on read access to 0x00000004 in 32-bit
code (0x411ed9c9).
In 32-bit mode.
0x411ed9c9 (ITypeInfo_fnGetContainingTypeLib+0x49 [typelib.c:4801] in
oleaut32.dll.so): call     *0x4(%edx)
4802          TRACE("returning ppTLib=%p", *ppTLib);
Wine-dbg>WineDbg terminated on pid a
 
using in wine.config:

[AppDefaults\\KazaaLite.kpp\\DllOverrides]
"*" = "builtin, native, so"
;"shdoclc" = "native"
"shdocvw" = "native"
"shlwapi" = "native"
"commctrl" = "native"
;"comdlg32" = "native"

The following patch reversal fixes it:
( it undoes Dmitry's patch )

Stefan Jones <cretin@gentoo.org>:
	CVS search to fix KazaaLite regression, undoing 1.95 changeset for
	wine/dlls/oleaut32/typelib.c

--- wine/dlls/oleaut32/typelib.c.jj	2003-07-10 19:06:43.000000000 +0100
+++ wine/dlls/oleaut32/typelib.c	2003-07-10 19:06:49.000000000 +0100
@@ -1851,6 +1851,7 @@
                       pcx->pTblDir->pTypeInfoTab.offset+count*sizeof(tiBase));
 /* this is where we are coming from */
     ptiRet->pTypeLib = pLibInfo;
+    ITypeLib2_AddRef((ITypeLib2 *)pLibInfo);
     ptiRet->index=count;
 /* fill in the typeattr fields */
     WARN("Assign constructor/destructor memid\n");
@@ -3062,6 +3063,7 @@
       }
       *ppTypeInfoImpl = (ITypeInfoImpl*)ITypeInfo_Constructor();
       (*ppTypeInfoImpl)->pTypeLib = pTypeLibImpl;
+         ITypeLib2_AddRef((ITypeLib2 *)pTypeLibImpl);
       (*ppTypeInfoImpl)->index = i;
       (*ppTypeInfoImpl)->Name = TLB_MultiByteToBSTR(
 					     pOtherTypeInfoBlks[i].name_offs +

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux