diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 20:07:58 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 20:07:58 +0000 |
commit | c09aa99a7e9915c503064d6eb5e9dd1bdd2a673f (patch) | |
tree | 9b1b1447755b03dc6fcb327b027789b415e3119f /plugins/DbChecker | |
parent | babf7873a3fe373d60ef22b1b671d98e014d8819 (diff) |
replace _tcscpy to mir_tstrcpy
git-svn-id: http://svn.miranda-ng.org/main/trunk@13764 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker')
-rw-r--r-- | plugins/DbChecker/src/selectdb.cpp | 4 | ||||
-rw-r--r-- | plugins/DbChecker/src/worker.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/plugins/DbChecker/src/selectdb.cpp b/plugins/DbChecker/src/selectdb.cpp index 12cd47105b..a55933a30f 100644 --- a/plugins/DbChecker/src/selectdb.cpp +++ b/plugins/DbChecker/src/selectdb.cpp @@ -159,7 +159,7 @@ void FindAdd(HWND hdlg, TCHAR *szProfileDir, TCHAR *szPrefix) TCHAR *addstring(TCHAR *str, TCHAR *add)
{
- _tcscpy(str, add);
+ mir_tstrcpy(str, add);
return str + mir_tstrlen(add) + 1;
}
@@ -203,7 +203,7 @@ INT_PTR CALLBACK SelectDbDlgProc(HWND hdlg, UINT message, WPARAM wParam, LPARAM TCHAR szMirandaProfiles[MAX_PATH];
DWORD cbData = SIZEOF(szMirandaPath);
- _tcscpy(szMirandaProfiles, szMirandaPath);
+ mir_tstrcpy(szMirandaProfiles, szMirandaPath);
_tcscat(szMirandaProfiles, _T("\\Profiles"));
GetProfileDirectory(szMirandaPath, szProfileDir, SIZEOF(szProfileDir));
diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp index 91eb089ff1..cf0b7bee1d 100644 --- a/plugins/DbChecker/src/worker.cpp +++ b/plugins/DbChecker/src/worker.cpp @@ -42,14 +42,14 @@ static void Finalize(time_t& ts) if (opts.bBackup) {
TCHAR dbPath[MAX_PATH], dbFile[MAX_PATH];
- _tcscpy(dbPath, opts.filename);
+ mir_tstrcpy(dbPath, opts.filename);
TCHAR* str2 = _tcsrchr(dbPath, '\\');
if (str2 != NULL) {
- _tcscpy(dbFile, str2 + 1);
+ mir_tstrcpy(dbFile, str2 + 1);
*str2 = 0;
}
else {
- _tcscpy(dbFile, dbPath);
+ mir_tstrcpy(dbFile, dbPath);
dbPath[0] = 0;
}
for (int i = 1;; i++) {
@@ -79,14 +79,14 @@ void __cdecl WorkerThread(void *) AddToStatus(STATUS_MESSAGE, TranslateT("Database worker thread activated"));
- _tcscpy(opts.workingFilename, opts.filename);
+ mir_tstrcpy(opts.workingFilename, opts.filename);
if (opts.bCheckOnly) {
- _tcscpy(opts.outputFilename, TranslateT("<check only>"));
+ mir_tstrcpy(opts.outputFilename, TranslateT("<check only>"));
opts.hOutFile = INVALID_HANDLE_VALUE;
}
else {
- _tcscpy(opts.outputFilename, opts.filename);
+ mir_tstrcpy(opts.outputFilename, opts.filename);
*_tcsrchr(opts.outputFilename, '.') = 0;
_tcscat(opts.outputFilename, TranslateT(" (Output).dat"));
opts.hOutFile = CreateFile(opts.outputFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
|