diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-30 14:50:03 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-30 14:50:03 +0000 |
commit | 46bd23bb19193e78e544d07a721e96548a7ab60a (patch) | |
tree | 15f5848c0766f231bc85b07c57e8821b34fe66ff /plugins/PluginUpdater/src/Notifications.cpp | |
parent | 82ea016e57d36a1e75e57529f8f5dfdd2ac39b63 (diff) |
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
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);
|