summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-06-12 11:49:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-06-12 11:49:39 +0000
commita19e90b8eba21b88a146c531cae16b7f1219b2b5 (patch)
tree979936ca1074dcc986ea9781c4657794211870e5
parent7c0fd9fa84e54a42926bf2fafdc7d3637fb22006 (diff)
no need to remove our own binary
git-svn-id: http://svn.miranda-ng.org/main/trunk@16954 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/PluginUpdater/src/DlgUpdate.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp
index d4b4ce1e7d..b3c5a07954 100644
--- a/plugins/PluginUpdater/src/DlgUpdate.cpp
+++ b/plugins/PluginUpdater/src/DlgUpdate.cpp
@@ -155,16 +155,17 @@ static void ApplyUpdates(void *param)
CallFunctionAsync(RestartMe, 0);
#endif
+ if (opts.bChangePlatform) {
+ TCHAR mirandaPath[MAX_PATH];
+ GetModuleFileName(NULL, mirandaPath, _countof(mirandaPath));
+ db_set_ts(NULL, MODNAME, "OldBin", mirandaPath);
+ }
+
opts.bForceRedownload = false;
db_unset(NULL, MODNAME, DB_SETTING_REDOWNLOAD);
opts.bChangePlatform = false;
db_unset(NULL, MODNAME, DB_SETTING_CHANGEPLATFORM);
-
- TCHAR mirandaPath[MAX_PATH];
- GetModuleFileName(NULL, mirandaPath, _countof(mirandaPath));
- db_set_ts(NULL, MODNAME, "OldBin", mirandaPath);
-
}
static void ResizeVert(HWND hDlg, int yy)