From 805f78cf16ac68674dcb70cbfbf2e9a7601eea2f Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Tue, 30 Jul 2002 12:41:55 +0000 Subject: [PATCH] wildcmp, upcase in toupper Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@101 --- src/misc/support.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/support.cpp b/src/misc/support.cpp index ba3124c9..b4f04628 100644 --- a/src/misc/support.cpp +++ b/src/misc/support.cpp @@ -85,7 +85,7 @@ char *trim(char *str) { bool wildcmp(char *wild, char *string) { char *cp, *mp; while ((*string) && (*wild != '*')) { - if ((*upcase(wild) != *upcase(string)) && (*wild != '?')) { + if ((toupper(*wild) != toupper(*string)) && (*wild != '?')) { return false; } @@ -100,7 +100,7 @@ bool wildcmp(char *wild, char *string) { } mp = wild; cp = string+1; - } else if ((*upcase(wild) == *upcase(string)) || (*wild == '?')) { + } else if ((toupper(*wild) == toupper(*string)) || (*wild == '?')) { wild++; string++; } else {