Hack: always try builtin module before elf or elfdll to avoid loading
a builtin dll .so file in the wrong mode.
This commit is contained in:
parent
aafd54dab9
commit
69e2bf626f
|
@ -1389,11 +1389,13 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
|
|||
|
||||
case MODULE_LOADORDER_ELFDLL:
|
||||
TRACE("Trying elfdll '%s'\n", libname);
|
||||
if (!(pwm = BUILTIN32_LoadLibraryExA(libname, flags)))
|
||||
pwm = ELFDLL_LoadLibraryExA(libname, flags);
|
||||
break;
|
||||
|
||||
case MODULE_LOADORDER_SO:
|
||||
TRACE("Trying so-library '%s'\n", libname);
|
||||
if (!(pwm = BUILTIN32_LoadLibraryExA(libname, flags)))
|
||||
pwm = ELF_LoadLibraryExA(libname, flags);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue