Fixed _strnicmp bug
This commit is contained in:
parent
8298fd2b0a
commit
17f0828c74
|
@ -380,7 +380,7 @@ int get_file_format(char *filename) {
|
|||
return -1;
|
||||
ext++;
|
||||
for(i = 0; i < sizeof(format)/sizeof(*format); i++) {
|
||||
if(_strnicmp(ext, extension[i], 3) == 0) {
|
||||
if(strnicmp(ext, extension[i], 3) == 0) {
|
||||
return format[i];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -191,7 +191,7 @@ int get_file_format(char *filename) {
|
|||
ext++;
|
||||
if(ext) {
|
||||
for(i = 0; i < sizeof(format)/sizeof(*format); i++) {
|
||||
if(_strnicmp(ext, extension[i], 3) == 0) {
|
||||
if(strnicmp(ext, extension[i], 3) == 0) {
|
||||
return format[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue