From 31332e84bd8d1242de9fdb3d902240d670cf5d68 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 18 Mar 2016 16:06:33 +0000 Subject: git-svn-id: http://svn.miranda-ng.org/main/trunk@16499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/backup.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Db_autobackups/src/backup.cpp') 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 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; } -- cgit v1.2.3