Commit 9132a78b authored by Robert W Hall's avatar Robert W Hall Committed by Alexandre Julliard

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

extension file name, allowing Mathcad to run.
parent 85aac700
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment