diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-24 20:26:58 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-24 20:26:58 +0000 |
commit | 43ecfa15193150d7fde82247680f7e16a5f1b8fa (patch) | |
tree | 50a3be4b20fc824a4308da7b3923d3366ff2db84 /plugins/PluginUpdater/src/unzipfile.cpp | |
parent | 386b0374969f724a99d145242dddf8562ff1be7c (diff) |
PluginUpdater: do not update unchecked files from archives of checked files. version bump.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4814 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/unzipfile.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/unzipfile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp index 2362debf44..a20fad318f 100644 --- a/plugins/PluginUpdater/src/unzipfile.cpp +++ b/plugins/PluginUpdater/src/unzipfile.cpp @@ -55,6 +55,12 @@ bool extractCurrentFile(unzFile uf, TCHAR *ptszDestPath, TCHAR *ptszBackPath) if (!opts.bUpdateIcons && !_strnicmp(filename, "Icons/", 6))
return true;
+ for (char *p = strchr(filename, '/'); p; p = strchr(p+1, '/'))
+ *p = '\\';
+
+ if (!db_get_b(NULL, MODNAME "Files", filename, true))
+ return true;
+
TCHAR tszDestFile[MAX_PATH], tszBackFile[MAX_PATH];
TCHAR *ptszNewName = mir_utf8decodeT(filename);
if (ptszNewName == NULL)
|