diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:23:27 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 19:23:27 +0000 |
commit | 1eb922f8075c53a1a8487045b096693bd27b56dd (patch) | |
tree | 2e4ec55f37aaa42d1f93d8a58fcde6c74b2025bb /src/modules/database/database.cpp | |
parent | e2d7ebd6315a810bd4ea54f1088b84d09c3ca5d2 (diff) |
replace _tcsicmp to mir_tstrcmpi
git-svn-id: http://svn.miranda-ng.org/main/trunk@13761 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r-- | src/modules/database/database.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index b0d201f551..bdf770646d 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -64,7 +64,7 @@ bool IsInsideRootDir(TCHAR* profiledir, bool exact) {
VARST pfd( _T("%miranda_path%"));
if (exact)
- return _tcsicmp(profiledir, pfd) == 0;
+ return mir_tstrcmpi(profiledir, pfd) == 0;
return _tcsnicmp(profiledir, pfd, mir_tstrlen(pfd)) == 0;
}
@@ -90,7 +90,7 @@ int getProfilePath(TCHAR *buf, size_t cch) int isValidProfileName(const TCHAR *name)
{
size_t len = mir_tstrlen(name) - 4;
- return len > 0 && _tcsicmp(&name[len], _T(".dat")) == 0;
+ return len > 0 && mir_tstrcmpi(&name[len], _T(".dat")) == 0;
}
// returns 1 if the profile manager should be shown
@@ -103,7 +103,7 @@ static bool showProfileManager(void) // wanna show it?
GetPrivateProfileString(_T("Database"), _T("ShowProfileMgr"), _T("never"), Mgr, SIZEOF(Mgr), mirandabootini);
- return (_tcsicmp(Mgr, _T("yes")) == 0);
+ return (mir_tstrcmpi(Mgr, _T("yes")) == 0);
}
bool shouldAutoCreate(TCHAR *szProfile)
@@ -113,7 +113,7 @@ bool shouldAutoCreate(TCHAR *szProfile) TCHAR ac[32];
GetPrivateProfileString(_T("Database"), _T("AutoCreate"), _T(""), ac, SIZEOF(ac), mirandabootini);
- return _tcsicmp(ac, _T("yes")) == 0;
+ return mir_tstrcmpi(ac, _T("yes")) == 0;
}
static void getDefaultProfile(TCHAR *szProfile, size_t cch)
@@ -157,7 +157,7 @@ static void loadProfileByShortName(const TCHAR* src, TCHAR *szProfile, size_t cc if (profileName[0]) {
p = _tcsrchr(g_profileDir, '\\'); *p = 0;
p = _tcsrchr(g_profileDir, '\\');
- if (p && _tcsicmp(p + 1, profileName) == 0)
+ if (p && mir_tstrcmpi(p + 1, profileName) == 0)
*p = 0;
}
else szProfile[0] = 0;
@@ -288,7 +288,7 @@ static int getProfileAutoRun(TCHAR *szProfile) TCHAR Mgr[32];
GetPrivateProfileString(_T("Database"), _T("ShowProfileMgr"), _T(""), Mgr, SIZEOF(Mgr), mirandabootini);
- if (_tcsicmp(Mgr, _T("never")))
+ if (mir_tstrcmpi(Mgr, _T("never")))
return 0;
return fileExist(szProfile) || shouldAutoCreate(szProfile);
|