From a19e90b8eba21b88a146c531cae16b7f1219b2b5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 12 Jun 2016 11:49:39 +0000 Subject: no need to remove our own binary git-svn-id: http://svn.miranda-ng.org/main/trunk@16954 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 11 ++++++----- 1 file 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) -- cgit v1.2.3