From 7f6ecdc2efeaf38403487d5a820d5c185e8677a9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 5 Jul 2002 01:26:41 +0000 Subject: [PATCH] Return ERROR_BAD_EXE_FORMAT when builtin dll still not found, since we most likely loaded a 16-bit builtin. --- relay32/builtin32.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;