Properly handle loadorder specifications containing a .dll extension.
This commit is contained in:
parent
77002ffc13
commit
55ce53d5d7
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue