Return ERROR_BAD_EXE_FORMAT when builtin dll still not found, since we
most likely loaded a 16-bit builtin.
This commit is contained in:
parent
a4f19d031c
commit
7f6ecdc2ef
|
@ -164,8 +164,9 @@ WINE_MODREF *BUILTIN32_LoadLibraryExA(LPCSTR path, DWORD flags)
|
|||
if (!(wm = MODULE_FindModule( path ))) wm = MODULE_FindModule( dllname );
|
||||
if (!wm)
|
||||
{
|
||||
ERR( "loaded .so but dll %s still not found - library environment problem or version conflict, check your setup.\n", dllname );
|
||||
ERR( "loaded .so but dll %s still not found - 16-bit dll or version conflict.\n", dllname );
|
||||
/* wine_dll_unload( handle );*/
|
||||
SetLastError( ERROR_BAD_EXE_FORMAT );
|
||||
return NULL;
|
||||
}
|
||||
wm->dlhandle = handle;
|
||||
|
|
Loading…
Reference in New Issue