From 688f55ba998c19304a29727c910504903f4cc49a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 18:51:36 +0000 Subject: lstr* replacements git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/DbChecker/src/selectdb.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/DbChecker/src/selectdb.cpp') diff --git a/plugins/DbChecker/src/selectdb.cpp b/plugins/DbChecker/src/selectdb.cpp index c5455ef4fd..09268d48e4 100644 --- a/plugins/DbChecker/src/selectdb.cpp +++ b/plugins/DbChecker/src/selectdb.cpp @@ -77,15 +77,15 @@ void GetProfileDirectory(TCHAR* szMirandaDir, TCHAR* szPath, int cbPath) { TCHAR szProfileDir[MAX_PATH], szExpandedProfileDir[MAX_PATH], szMirandaBootIni[MAX_PATH]; - lstrcpy(szMirandaBootIni, szMirandaDir); - lstrcat(szMirandaBootIni, _T("\\mirandaboot.ini")); + mir_tstrcpy(szMirandaBootIni, szMirandaDir); + mir_tstrcat(szMirandaBootIni, _T("\\mirandaboot.ini")); GetPrivateProfileString(_T("Database"), _T("ProfileDir"), _T("./Profiles"), szProfileDir, SIZEOF(szProfileDir), szMirandaBootIni); ExpandEnvironmentStrings(szProfileDir, szExpandedProfileDir, SIZEOF(szExpandedProfileDir)); _tchdir(szMirandaDir); if (!_tfullpath(szPath, szExpandedProfileDir, cbPath)) - lstrcpyn(szPath, szMirandaDir, cbPath); - if (szPath[lstrlen(szPath) - 1] == '\\') - szPath[lstrlen(szPath) - 1] = 0; + mir_tstrncpy(szPath, szMirandaDir, cbPath); + if (szPath[mir_tstrlen(szPath) - 1] == '\\') + szPath[mir_tstrlen(szPath) - 1] = 0; } static int AddDatabaseToList(HWND hwndList, const TCHAR* filename, TCHAR* dir) @@ -140,8 +140,8 @@ void FindAdd(HWND hdlg, TCHAR *szProfileDir, TCHAR *szPrefix) WIN32_FIND_DATA fd; TCHAR szSearchPath[MAX_PATH], szFilename[MAX_PATH]; - lstrcpy(szSearchPath, szProfileDir); - lstrcat(szSearchPath, _T("\\*.*")); + mir_tstrcpy(szSearchPath, szProfileDir); + mir_tstrcat(szSearchPath, _T("\\*.*")); hFind = FindFirstFile(szSearchPath, &fd); if (hFind != INVALID_HANDLE_VALUE) { -- cgit v1.2.3