diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-06 20:52:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-06 20:52:37 +0000 |
commit | 97ecd2b560357a1c7756d7b93d0b820f63071080 (patch) | |
tree | a1a1ed6c5ea976b7699003388c69bb2fd45f6e7e /plugins/PluginUpdater/src/unzipfile.cpp | |
parent | 4021c096c2acf83f4671edbb4e212796bd662491 (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.cpp | 1 |
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,
|