From fbe102bea6ca57970d1de4a2c6cc349d3f6ff71d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 10 Oct 2012 13:38:02 +0000 Subject: 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 --- plugins/PluginUpdater/src/unzipfile.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3