From 7168070b01a75eef6cce86a266057b2cb64c264c Mon Sep 17 00:00:00 2001 From: Bertho Stultiens Date: Mon, 26 Apr 1999 14:55:24 +0000 Subject: [PATCH] The load order parser should not always complain about extensions. --- loader/loadorder.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/loader/loadorder.c b/loader/loadorder.c index 8d823de9367..70aa2316fa5 100644 --- a/loader/loadorder.c +++ b/loader/loadorder.c @@ -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))