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:
Alexandre Julliard 2000-03-19 21:21:56 +00:00
parent aafd54dab9
commit 69e2bf626f
1 changed files with 4 additions and 2 deletions

View File

@ -1389,12 +1389,14 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags )
case MODULE_LOADORDER_ELFDLL:
TRACE("Trying elfdll '%s'\n", libname);
pwm = ELFDLL_LoadLibraryExA(libname, flags);
if (!(pwm = BUILTIN32_LoadLibraryExA(libname, flags)))
pwm = ELFDLL_LoadLibraryExA(libname, flags);
break;
case MODULE_LOADORDER_SO:
TRACE("Trying so-library '%s'\n", libname);
pwm = ELF_LoadLibraryExA(libname, flags);
if (!(pwm = BUILTIN32_LoadLibraryExA(libname, flags)))
pwm = ELF_LoadLibraryExA(libname, flags);
break;
case MODULE_LOADORDER_BI: