diff --git a/relay32/builtin32.c b/relay32/builtin32.c index 36bee629c1e..9f26d99514c 100644 --- a/relay32/builtin32.c +++ b/relay32/builtin32.c @@ -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;