From 7098878c15e41955369620fe2844a133aef4b4ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 8 Aug 2012 13:58:34 +0000 Subject: remove successfully unpacked zip files git-svn-id: http://svn.miranda-ng.org/main/trunk@1402 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/PluginUpdater/src/Notifications.cpp') diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 0ef119ee9c..8d0a2937c2 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -280,7 +280,8 @@ static void ApplyUpdates(void* param) continue; FILEINFO& p = todo[i]; - unzip(p.File.tszDiskPath, tszMirandaPath, tszFileBack); + if ( unzip(p.File.tszDiskPath, tszMirandaPath, tszFileBack)) + DeleteFile(p.File.tszDiskPath); } DestroyWindow(hDlg); -- cgit v1.2.3