diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-28 18:35:39 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-10-28 18:35:39 +0000 |
commit | 9a544494ea5dc8b9a41da6d38015e9c4a1a0f3a6 (patch) | |
tree | 580f3a56e8beca3125e2f23554bc66fba56ee615 /plugins/Db_autobackups/src/backup.cpp | |
parent | fe82414371277756f2612ba8542c4b23f5625917 (diff) |
cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6662 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db_autobackups/src/backup.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index 59f65c6220..4e8f82f6af 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -130,15 +130,13 @@ int Backup(TCHAR* backup_filename) if (backup_filename == NULL)
{
- int err = 0;
-
SYSTEMTIME st;
TCHAR buffer[MAX_COMPUTERNAME_LENGTH+1];
DWORD size = sizeof(buffer);
TCHAR *backupfolder = Utils_ReplaceVarsT(options.folder);
// ensure the backup folder exists (either create it or return non-zero signifying error)
- err = CreateDirectoryTree(backupfolder);
+ int err = CreateDirectoryTreeT(backupfolder);
if(err != ERROR_ALREADY_EXISTS && err != 0) {
return 1;
}
|