Corrected wrong return values of built-in loader to work with the
loadorder stuff.
This commit is contained in:
parent
56166a6f85
commit
10db759b47
|
@ -252,8 +252,8 @@ HMODULE16 BUILTIN_LoadModule( LPCSTR name, BOOL force )
|
||||||
|
|
||||||
for (table = BuiltinDLLs; table->descr; table++)
|
for (table = BuiltinDLLs; table->descr; table++)
|
||||||
if (!lstrcmpiA( table->descr->name, dllname )) break;
|
if (!lstrcmpiA( table->descr->name, dllname )) break;
|
||||||
if (!table->descr) return 0;
|
if (!table->descr) return (HMODULE16)2;
|
||||||
if ((table->flags & DLL_FLAG_NOT_USED) && !force) return 0;
|
if ((table->flags & DLL_FLAG_NOT_USED) && !force) return (HMODULE16)2;
|
||||||
|
|
||||||
return BUILTIN_DoLoadModule16( table->descr );
|
return BUILTIN_DoLoadModule16( table->descr );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue