summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-10 13:38:02 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-10 13:38:02 +0000
commitfbe102bea6ca57970d1de4a2c6cc349d3f6ff71d (patch)
tree65791666544e436eef3b18e88828643937063d19 /plugins
parentdbd16f29a64e0636846f75b07b22e6f6beb0cedf (diff)
fix for the Updater: sometimes not all files were extracted from an archive
git-svn-id: http://svn.miranda-ng.org/main/trunk@1864 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/PluginUpdater/src/unzipfile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp
index ed4e045e70..1dd403959c 100644
--- a/plugins/PluginUpdater/src/unzipfile.cpp
+++ b/plugins/PluginUpdater/src/unzipfile.cpp
@@ -67,6 +67,9 @@ bool extractCurrentFile(unzFile uf, const TCHAR *ptszOldFileName, TCHAR *ptszDes
}
else _tcscpy(tszOldName, ptszOldFileName);
+ if (0 != _tcsicmp(tszOldName, ptszNewName))
+ _tcscpy(tszOldName, ptszNewName);
+
PrepareFileName(tszDestFile, SIZEOF(tszDestFile), ptszDestPath, tszOldName);
PrepareFileName(tszBackFile, SIZEOF(tszBackFile), ptszBackPath, tszOldName);