From f98b33efcd99185c4a81eda7eb90098b490bac79 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Tue, 14 Jun 2016 21:59:15 +0000 Subject: PluginUpdater: - Fix for deleting old miranda*.exe (backwards compatibility) git-svn-id: http://svn.miranda-ng.org/main/trunk@16973 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/DlgUpdate.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/PluginUpdater/src/DlgUpdate.cpp b/plugins/PluginUpdater/src/DlgUpdate.cpp index 4504d2ef86..1155a20930 100644 --- a/plugins/PluginUpdater/src/DlgUpdate.cpp +++ b/plugins/PluginUpdater/src/DlgUpdate.cpp @@ -138,15 +138,15 @@ static void ApplyUpdates(void *param) if (opts.bChangePlatform) { TCHAR mirandaPath[MAX_PATH]; GetModuleFileName(NULL, mirandaPath, _countof(mirandaPath)); - db_set_ts(NULL, MODNAME, "OldBin", mirandaPath); + db_set_ts(NULL, MODNAME, "OldBin2", mirandaPath); db_unset(NULL, MODNAME, DB_SETTING_CHANGEPLATFORM); } else { - ptrT oldbin(db_get_tsa(NULL, MODNAME, "OldBin")); + ptrT oldbin(db_get_tsa(NULL, MODNAME, "OldBin2")); if (oldbin) { SafeDeleteFile(oldbin); - db_unset(NULL, MODNAME, "OldBin"); + db_unset(NULL, MODNAME, "OldBin2"); } } -- cgit v1.2.3