Make DOSFS_MatchLong match a search string ending in '*.' to a zero

extension file name, allowing Mathcad to run.
oldstable
Robert W Hall 1999-04-18 14:38:17 +00:00 committed by Alexandre Julliard
parent 85aac70064
commit 9132a78b27
1 changed files with 2 additions and 1 deletions

View File

@ -291,7 +291,7 @@ static int DOSFS_MatchLong( const char *mask, const char *name,
if (!*mask) return 1;
if (case_sensitive) while (*name && (*name != *mask)) name++;
else while (*name && (toupper(*name) != toupper(*mask))) name++;
if (!*name) return 0;
if (!*name) break;
}
else if (*mask != '?')
{
@ -304,6 +304,7 @@ static int DOSFS_MatchLong( const char *mask, const char *name,
mask++;
name++;
}
if (*mask == '.') mask++; /* Ignore trailing '.' in mask */
return (!*name && !*mask);
}