PATCH: load typelibs also from ELF DSOs/binaries
Marcus Meissner
meissner at suse.de
Tue Sep 6 10:14:28 CDT 2005
Hi,
To get Roberts testcase to work.
If the file has a ELF signature, also try to load it using LoadLibraryEx.
Ciao, Marcus
Changelog:
Also try loading ELF DSOs or binaries for typelibs.
Index: dlls/oleaut32/typelib.c
===================================================================
RCS file: /home/wine/wine/dlls/oleaut32/typelib.c,v
retrieving revision 1.167
diff -u -r1.167 typelib.c
--- dlls/oleaut32/typelib.c 29 Aug 2005 21:46:34 -0000 1.167
+++ dlls/oleaut32/typelib.c 6 Sep 2005 15:12:36 -0000
@@ -2229,7 +2229,7 @@
}
/* if the file is a DLL or not found, try loading it with LoadLibrary */
- if (((WORD)dwSignature == IMAGE_DOS_SIGNATURE) || (dwSignature == 0))
+ if (((WORD)dwSignature == IMAGE_DOS_SIGNATURE) || (dwSignature == 0) || (dwSignature == 0x7f454c46) || (dwSignature == 0x464c457f))
{
/* find the typelibrary resource*/
HINSTANCE hinstDLL = LoadLibraryExW(pszFileName, 0, DONT_RESOLVE_DLL_REFERENCES|
More information about the wine-patches
mailing list