From 46bd23bb19193e78e544d07a721e96548a7ab60a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Sep 2012 14:50:03 +0000 Subject: fix for DLLs with the trailing W in names git-svn-id: http://svn.miranda-ng.org/main/trunk@1729 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/PluginUpdater/src/Notifications.cpp') diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 4a07b446fb..aad66b965e 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -279,12 +279,12 @@ static void ApplyUpdates(void *param) continue; FILEINFO& p = todo[i]; - if (p.tszNewName[0] == 0) { // delete only - TCHAR *ptszRelPath = p.tszOldName + _tcslen(tszMirandaPath) + 1; + if (p.bDeleteOnly) { // delete only + TCHAR *ptszRelPath = p.tszNewName + _tcslen(tszMirandaPath) + 1; TCHAR tszBackFile[MAX_PATH]; mir_sntprintf(tszBackFile, SIZEOF(tszBackFile), _T("%s\\%s"), tszFileBack, ptszRelPath); DeleteFile(tszBackFile); - MoveFile(p.tszOldName, tszBackFile); + MoveFile(p.tszNewName, tszBackFile); } else if ( unzip(p.tszOldName, p.File.tszDiskPath, tszMirandaPath, tszFileBack)) DeleteFile(p.File.tszDiskPath); -- cgit v1.2.3