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/options.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/options.cpp')
-rw-r--r-- | plugins/Db_autobackups/src/options.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Db_autobackups/src/options.cpp b/plugins/Db_autobackups/src/options.cpp index 02a2c2bc7f..0f63dc96de 100644 --- a/plugins/Db_autobackups/src/options.cpp +++ b/plugins/Db_autobackups/src/options.cpp @@ -299,8 +299,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP {
TCHAR backupfolder[MAX_PATH] = {0};
BOOL folder_ok = TRUE;
- int err = 0;
- TCHAR *tmp = Utils_ReplaceVarsT(folder_buff);
+ TCHAR *tmp = Utils_ReplaceVarsT(folder_buff);
if(_tcslen(tmp) >= 2 && tmp[1] == ':')
_tcsncpy(backupfolder, tmp, MAX_PATH-1);
@@ -308,7 +307,7 @@ INT_PTR CALLBACK DlgProcOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP mir_sntprintf(backupfolder, MAX_PATH, _T("%s\\%s"), profilePath, tmp);
mir_free(tmp);
- err = CreateDirectoryTree(backupfolder);
+ int err = CreateDirectoryTreeT(backupfolder);
if(err != ERROR_ALREADY_EXISTS && err != 0) {
TCHAR msg_buff[512];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, err, 0, msg_buff, 512, 0);
|