From b54aa7ddb41c1d62d2b05407b535acd52b761ca2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Aug 2012 19:21:55 +0000 Subject: Temp & Backup folders were swapped git-svn-id: http://svn.miranda-ng.org/main/trunk@1386 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Notifications.cpp | 4 ++-- plugins/PluginUpdater/src/Scanner.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/PluginUpdater/src/Notifications.cpp b/plugins/PluginUpdater/src/Notifications.cpp index 3bcc187f4a..3955d7100b 100644 --- a/plugins/PluginUpdater/src/Notifications.cpp +++ b/plugins/PluginUpdater/src/Notifications.cpp @@ -269,7 +269,7 @@ static void ApplyUpdates(void* param) else rc = MessageBox(NULL, temp.Text, temp.Title, MB_YESNO | MB_ICONQUESTION); if (rc != IDYES) { - mir_sntprintf(tszBuff, SIZEOF(tszBuff), TranslateT("You have chosen not to install the plugin updates immediately.\nYou can install it manually from this location:\n\n%s"), tszFileBack); + mir_sntprintf(tszBuff, SIZEOF(tszBuff), TranslateT("You have chosen not to install the plugin updates immediately.\nYou can install it manually from this location:\n\n%s"), tszFileTemp); ShowPopup(0, LPGENT("Plugin Updater"), tszBuff, 2, 0); DestroyWindow(hDlg); return; @@ -282,7 +282,7 @@ static void ApplyUpdates(void* param) continue; FILEINFO& p = todo[i]; - unzip(p.File.tszDiskPath, tszMirandaPath, tszFileTemp); + unzip(p.File.tszDiskPath, tszMirandaPath, tszFileBack); } DestroyWindow(hDlg); diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index 13cd2adf05..20cc98ea40 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -40,7 +40,7 @@ static void ScanFolder(const TCHAR* tszFolder, const TCHAR* tszBaseUrl, hashMap& { TCHAR tszMask[MAX_PATH], tszFileBack[MAX_PATH]; mir_sntprintf(tszMask, SIZEOF(tszMask), _T("%s\\*"), tszFolder); - mir_sntprintf(tszFileBack, SIZEOF(tszFileBack), _T("%s\\Backups"), tszRoot); + mir_sntprintf(tszFileBack, SIZEOF(tszFileBack), _T("%s\\Temp"), tszRoot); WIN32_FIND_DATA ffd; HANDLE hFind = FindFirstFile(tszMask, &ffd); -- cgit v1.2.3