un7z.cpp: fix case insensitivity

fix for https://github.com/libretro/FBNeo/issues/699
This commit is contained in:
barbudreadmon 2021-03-31 10:18:43 +02:00 committed by GitHub
parent 34c0ff5529
commit 15b9393f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,7 +262,7 @@ int _7z_search_crc_match(_7z_file *new_7z, UINT32 search_crc, const char* search
// MAME filenames are always lowercase so be case insensitive
if ((zn>=0x41) && (zn<=0x5a)) zn+=0x20;
if (sn != zn) break;
if (sn != zn && tolower(sn) != zn) break;
}
if (j==search_filename_length) namematch = true;
}