From b499ebc740aa5480be013d40e0d8097066800642 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 10:18:21 +0000 Subject: replace _tcslen to mir_tstrlen git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/database/database.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/database') diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index 28abf44605..292f0000ab 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -66,7 +66,7 @@ bool IsInsideRootDir(TCHAR* profiledir, bool exact) if (exact) return _tcsicmp(profiledir, pfd) == 0; - return _tcsnicmp(profiledir, pfd, _tcslen(pfd)) == 0; + return _tcsnicmp(profiledir, pfd, mir_tstrlen(pfd)) == 0; } // returns 1 if the profile path was returned, without trailing slash @@ -89,7 +89,7 @@ int getProfilePath(TCHAR *buf, size_t cch) // returns 1 if *.dat spec is matched int isValidProfileName(const TCHAR *name) { - size_t len = _tcslen(name) - 4; + size_t len = mir_tstrlen(name) - 4; return len > 0 && _tcsicmp(&name[len], _T(".dat")) == 0; } -- cgit v1.2.3