Corrected wrong return values of built-in loader to work with the

loadorder stuff.
oldstable
Bertho Stultiens 1999-04-21 14:25:21 +00:00 committed by Alexandre Julliard
parent 56166a6f85
commit 10db759b47
1 changed files with 2 additions and 2 deletions

View File

@ -252,8 +252,8 @@ HMODULE16 BUILTIN_LoadModule( LPCSTR name, BOOL force )
for (table = BuiltinDLLs; table->descr; table++)
if (!lstrcmpiA( table->descr->name, dllname )) break;
if (!table->descr) return 0;
if ((table->flags & DLL_FLAG_NOT_USED) && !force) return 0;
if (!table->descr) return (HMODULE16)2;
if ((table->flags & DLL_FLAG_NOT_USED) && !force) return (HMODULE16)2;
return BUILTIN_DoLoadModule16( table->descr );
}