summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/worker.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/DbChecker/src/worker.cpp
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
less TCHARs:
- TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/DbChecker/src/worker.cpp')
-rw-r--r--plugins/DbChecker/src/worker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp
index 674088d9f5..92ab1cf497 100644
--- a/plugins/DbChecker/src/worker.cpp
+++ b/plugins/DbChecker/src/worker.cpp
@@ -41,9 +41,9 @@ static void Finalize(time_t& ts)
}
if (opts.bBackup) {
- TCHAR dbPath[MAX_PATH], dbFile[MAX_PATH];
+ wchar_t dbPath[MAX_PATH], dbFile[MAX_PATH];
mir_tstrcpy(dbPath, opts.filename);
- TCHAR* str2 = _tcsrchr(dbPath, '\\');
+ wchar_t* str2 = wcsrchr(dbPath, '\\');
if (str2 != NULL) {
mir_tstrcpy(dbFile, str2 + 1);
*str2 = 0;
@@ -57,7 +57,7 @@ static void Finalize(time_t& ts)
mir_sntprintf(opts.backupFilename, TranslateT("%s\\Backup of %s"), dbPath, dbFile);
else
mir_sntprintf(opts.backupFilename, TranslateT("%s\\Backup (%d) of %s"), dbPath, i, dbFile);
- if (_taccess(opts.backupFilename, 0) == -1) break;
+ if (_waccess(opts.backupFilename, 0) == -1) break;
}
if (!MoveFile(opts.filename, opts.backupFilename))
@@ -87,7 +87,7 @@ void __cdecl WorkerThread(void *)
}
else {
mir_tstrcpy(opts.outputFilename, opts.filename);
- *_tcsrchr(opts.outputFilename, '.') = 0;
+ *wcsrchr(opts.outputFilename, '.') = 0;
mir_tstrcat(opts.outputFilename, TranslateT(" (Output).dat"));
opts.hOutFile = CreateFile(opts.outputFilename, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_FLAG_SEQUENTIAL_SCAN, NULL);
if (opts.hOutFile == INVALID_HANDLE_VALUE) {