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:
Alexandre Julliard 2002-07-05 01:26:41 +00:00
parent a4f19d031c
commit 7f6ecdc2ef
1 changed files with 2 additions and 1 deletions

View File

@ -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;