diff options
Diffstat (limited to 'plugins/PluginUpdater/src/Notifications.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Notifications.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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);
|