diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/PluginUpdater/src/unzipfile.cpp | 3 | 
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);
  | 
