summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r--plugins/PluginUpdater/res/Resource.rc4
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp5
-rw-r--r--plugins/PluginUpdater/src/Utils.cpp2
3 files changed, 7 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/res/Resource.rc b/plugins/PluginUpdater/res/Resource.rc
index 06f1c0ccdf..246e4f38f6 100644
--- a/plugins/PluginUpdater/res/Resource.rc
+++ b/plugins/PluginUpdater/res/Resource.rc
@@ -79,8 +79,8 @@ BEGIN
EDITTEXT IDC_CUSTOMURL,12,187,267,16,ES_AUTOHSCROLL | WS_DISABLED
CTEXT "Some component(s) was updated.\nYou need to restart your Miranda to apply installed updates.",IDC_NEEDRESTARTLABEL,11,213,267,15,NOT WS_VISIBLE
GROUPBOX "",IDC_STATIC,212,122,58,40
- CONTROL "x86",IDC_X86,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,217,131,28,10
- CONTROL "x64",IDC_X64,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP,217,146,28,10
+ CONTROL "x86", IDC_X86, "Button", BS_AUTORADIOBUTTON | WS_DISABLED | WS_TABSTOP, 217, 131, 28, 10
+ CONTROL "x64", IDC_X64, "Button", BS_AUTORADIOBUTTON | WS_DISABLED | WS_TABSTOP, 217, 146, 28, 10
END
IDD_POPUP DIALOGEX 0, 0, 316, 174
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp
index 7f8728d96d..413c4bff83 100644
--- a/plugins/PluginUpdater/src/DlgUpdate.cpp
+++ b/plugins/PluginUpdater/src/DlgUpdate.cpp
@@ -629,8 +629,11 @@ static int ScanFolder(const TCHAR *tszFolder, size_t cbBaseLen, const TCHAR *tsz
else if (isValidExtension(ffd.cFileName)) {
// calculate the current file's relative name and store it into tszNewName
TCHAR tszNewName[MAX_PATH];
- if (CheckFileRename(ffd.cFileName, tszNewName))
+ if (CheckFileRename(ffd.cFileName, tszNewName)) {
Netlib_LogfT(hNetlibUser, _T("File %s will be renamed to %s."), ffd.cFileName, tszNewName);
+ // Yes, we need the old file name, because this will be hashed later
+ mir_sntprintf(tszBuf, _T("%s\\%s"), tszFolder, ffd.cFileName);
+ }
else {
if (level == 0) {
// Rename Miranda*.exe
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp
index ca31724626..69d60a03a8 100644
--- a/plugins/PluginUpdater/src/Utils.cpp
+++ b/plugins/PluginUpdater/src/Utils.cpp
@@ -37,7 +37,7 @@ void LoadOptions()
opts.bForceRedownload = db_get_b(NULL, MODNAME, DB_SETTING_REDOWNLOAD, 0);
opts.bSilentMode = db_get_b(NULL, MODNAME, "SilentMode", 0);
opts.bBackup = db_get_b(NULL, MODNAME, "Backup", 0);
- opts.bChangePlatform = db_get_b(NULL, MODNAME, DB_SETTING_CHANGEPLATFORM, 0);
+ opts.bChangePlatform = false; // db_get_b(NULL, MODNAME, DB_SETTING_CHANGEPLATFORM, 0);
}
#if MIRANDA_VER >= 0x0A00