Fixed _strnicmp bug

This commit is contained in:
Francois-Olivier Devaux 2007-08-20 15:26:01 +00:00
parent 8298fd2b0a
commit 17f0828c74
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}
}

View File

@ -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];
}
}