From 77b8c0a42fe5d4a9ae92571a5e1be6e47a0501b0 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 26 Nov 2003 04:13:53 +0000 Subject: [PATCH] NE_LoadBuiltinModule: return error 21 if the module we loaded was a 32-bit builtin. This should help WinExec16 to do the right thing. --- dlls/kernel/ne_module.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/kernel/ne_module.c b/dlls/kernel/ne_module.c index 95a33c06694..193ec71aee8 100644 --- a/dlls/kernel/ne_module.c +++ b/dlls/kernel/ne_module.c @@ -1169,7 +1169,8 @@ static HMODULE16 NE_LoadBuiltinModule( LPCSTR name ) { if ((descr = find_dll_descr( dllname ))) return NE_DoLoadBuiltinModule( descr ); - + if (GetModuleHandleA( dllname )) + return 21; /* Win32 module */ ERR( "loaded .so but dll %s still not found\n", dllname ); } else