Properly handle loadorder specifications containing a .dll extension.

This commit is contained in:
Alexandre Julliard 2002-03-22 01:01:09 +00:00
parent 77002ffc13
commit 55ce53d5d7
1 changed files with 1 additions and 7 deletions

View File

@ -260,13 +260,7 @@ static BOOL AddLoadOrderSet(char *key, char *order)
while(cptr) while(cptr)
{ {
char *ext = strrchr(cptr, '.'); char *ext = strrchr(cptr, '.');
if(ext) if(ext && !FILE_strcasecmp( ext, ".dll" )) *ext = 0;
{
if(strlen(ext) == 4 &&
(!FILE_strcasecmp(ext, ".dll") || !FILE_strcasecmp(ext, ".exe")))
MESSAGE("Warning: Loadorder override '%s' contains an extension and might not be found during lookup\n", cptr);
}
ldo.modulename = cptr; ldo.modulename = cptr;
if(!AddLoadOrder(&ldo)) return FALSE; if(!AddLoadOrder(&ldo)) return FALSE;
cptr = get_tok(NULL, ", \t"); cptr = get_tok(NULL, ", \t");