Changed extension of conditional attributes to use stricmp instead strcmp

SVN revision: 1941
This commit is contained in:
Stefan Ritt 2007-10-22 19:20:19 +00:00
parent 532d4f0258
commit 07b89dcd99

View File

@ -2785,7 +2785,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
return FALSE; return FALSE;
if (!_condition[0] || str[0] != '{') if (!_condition[0] || str[0] != '{')
return (strcmp(str, param) == 0); return (stricmp(str, param) == 0);
p = str; p = str;
if (strchr(p, '}')) if (strchr(p, '}'))
@ -2806,7 +2806,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
for (j = 0; j < npl; j++) for (j = 0; j < npl; j++)
if (stricmp(clist[i], plist[j]) == 0) { if (stricmp(clist[i], plist[j]) == 0) {
/* condition matches */ /* condition matches */
return strcmp(p, param) == 0; return stricmp(p, param) == 0;
} }
/* check and'ed conditions */ /* check and'ed conditions */
@ -2823,7 +2823,7 @@ BOOL match_param(char *str, char *param, int conditional_only)
} }
if (j == nand) if (j == nand)
return strcmp(p, param) == 0; return stricmp(p, param) == 0;
} }
return 0; return 0;