mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
fix VS2005 _strnicmp error issue
svn-id: r18459
This commit is contained in:
parent
0c4f349a1b
commit
96f9571afc
@ -2829,7 +2829,7 @@ static int generateSubstResFileName_(const char *filename, char *buf, int bufsiz
|
||||
num = filename[strlen(filename) - 2];
|
||||
|
||||
const char *ext = strrchr(filename, '.');
|
||||
int len = ext - filename;
|
||||
size_t len = (ext > 0) ? ext - filename : strlen(filename);
|
||||
|
||||
for (int i = index; i < ARRAYSIZE(substResFileNameTable); i++) {
|
||||
if (!scumm_strnicmp(filename, substResFileNameTable[i].winName, len)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user