summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/unzipfile.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-06 20:52:37 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-06 20:52:37 +0000
commit97ecd2b560357a1c7756d7b93d0b820f63071080 (patch)
treea1a1ed6c5ea976b7699003388c69bb2fd45f6e7e /plugins/PluginUpdater/src/unzipfile.cpp
parent4021c096c2acf83f4671edbb4e212796bd662491 (diff)
fix for the repetitive update
git-svn-id: http://svn.miranda-ng.org/main/trunk@1388 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/unzipfile.cpp')
-rw-r--r--plugins/PluginUpdater/src/unzipfile.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/unzipfile.cpp b/plugins/PluginUpdater/src/unzipfile.cpp
index fcafc5b17c..dc55dfca43 100644
--- a/plugins/PluginUpdater/src/unzipfile.cpp
+++ b/plugins/PluginUpdater/src/unzipfile.cpp
@@ -59,6 +59,7 @@ bool extractCurrentFile(unzFile uf, TCHAR* ptszDestPath, TCHAR* ptszBackPath)
if (err != UNZ_OK)
return false;
+ DeleteFile(tszBackFile);
MoveFile(tszDestFile, tszBackFile);
HANDLE hFile = CreateFile(tszDestFile, GENERIC_WRITE, FILE_SHARE_WRITE, 0,