diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-18 16:06:33 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-18 16:06:33 +0000 |
commit | 31332e84bd8d1242de9fdb3d902240d670cf5d68 (patch) | |
tree | aad681f1ae7bb2bf9a35dc457c3bf59d94b5317b | |
parent | 3925fc13b2131e18801a5a0f787e6789bb580047 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@16499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/Db_autobackups/src/backup.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/Db_autobackups/src/backup.cpp b/plugins/Db_autobackups/src/backup.cpp index fe7bf628e4..ba8c06e591 100644 --- a/plugins/Db_autobackups/src/backup.cpp +++ b/plugins/Db_autobackups/src/backup.cpp @@ -1,6 +1,4 @@ #include "stdafx.h"
-#include "..\..\libs\zlib\src\zip.h"
-
static UINT_PTR timer_id = 0;
volatile long m_state = 0;
@@ -116,9 +114,9 @@ bool MakeZip(TCHAR *tszSource, TCHAR *tszDest, TCHAR *dbname, HWND progress_dial ptrA szSourceName(mir_u2a(dbname));
ptrT tszDestPath(DoubleSlash(tszDest));
OBJLIST<ZipFile> lstFiles(15);
- lstFiles.insert(new ZipFile((char*)_T2A(tszDest), (char*)szSourceName));
+ lstFiles.insert(new ZipFile((char*)_T2A(tszSource), (char*)szSourceName));
- CreateZipFile(_T2A(tszDest), lstFiles, [&](size_t i)->bool{ SendMessage(hProgBar, PBM_SETPOS, (WPARAM)(100), 0); return true; });
+ CreateZipFile(_T2A(tszDest), lstFiles, [&](size_t)->bool{ SendMessage(hProgBar, PBM_SETPOS, (WPARAM)(100), 0); return true; });
return true;
}
|