diff options
Diffstat (limited to 'protocols/Gadu-Gadu/src/image.cpp')
-rw-r--r-- | protocols/Gadu-Gadu/src/image.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/image.cpp b/protocols/Gadu-Gadu/src/image.cpp index 5f1dd86fd3..467487cfe5 100644 --- a/protocols/Gadu-Gadu/src/image.cpp +++ b/protocols/Gadu-Gadu/src/image.cpp @@ -789,12 +789,12 @@ TCHAR *gg_img_hasextension(TCHAR *filename) {
size_t len = mir_tstrlen(imgtype);
imgtype++;
- if (len == 4 && (_tcsicmp(imgtype, _T("bmp")) == 0 ||
- _tcsicmp(imgtype, _T("gif")) == 0 ||
- _tcsicmp(imgtype, _T("jpg")) == 0 ||
- _tcsicmp(imgtype, _T("png")) == 0))
+ if (len == 4 && (mir_tstrcmpi(imgtype, _T("bmp")) == 0 ||
+ mir_tstrcmpi(imgtype, _T("gif")) == 0 ||
+ mir_tstrcmpi(imgtype, _T("jpg")) == 0 ||
+ mir_tstrcmpi(imgtype, _T("png")) == 0))
return --imgtype;
- if (len == 5 && _tcsicmp(imgtype, _T("jpeg")) == 0)
+ if (len == 5 && mir_tstrcmpi(imgtype, _T("jpeg")) == 0)
return --imgtype;
}
}
|