Support for * wildcard.

This commit is contained in:
sorgelig
2019-01-25 07:12:50 +08:00
parent 9edfb310b5
commit 07f4d0c5b3
3 changed files with 17 additions and 23 deletions

View File

@@ -2583,6 +2583,7 @@ unsigned char user_io_ext_idx(char *name, char* ext)
int found = 1;
for (int i = 0; i < 3; i++)
{
if (ext[i] == '*') break;
if (ext[i] != '?' && (toupper(ext[i]) != toupper(e[i]))) found = 0;
}