Skip to content
Snippets Groups Projects
Commit 7168070b authored by Bertho Stultiens's avatar Bertho Stultiens Committed by Alexandre Julliard
Browse files

The load order parser should not always complain about extensions.

parent cd0ed1e6
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment