The load order parser should not always complain about extensions.

This commit is contained in:
Bertho Stultiens 1999-04-26 14:55:24 +00:00 committed by Alexandre Julliard
parent cd0ed1e6b9
commit 7168070b01

View file

@ -224,8 +224,12 @@ static BOOL AddLoadOrderSet(char *key, char *order, BOOL override)
cptr = get_tok(key, ", \t");
while(cptr)
{
if(strchr(cptr, '.'))
MSG("Warning: Loadorder override '%s' contains an extension and might not be found during lookup\n", cptr);
char *ext = strrchr(cptr, '.');
if(ext)
{
if(strlen(ext) == 4 && (!strcasecmp(ext, ".dll") || !strcasecmp(ext, ".exe")))
MSG("Warning: Loadorder override '%s' contains an extension and might not be found during lookup\n", cptr);
}
ldo.modulename = cptr;
if(!AddLoadOrder(&ldo, override))