summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/PluginUpdater.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2016-06-06 17:23:07 +0000
committerKirill Volinsky <mataes2007@gmail.com>2016-06-06 17:23:07 +0000
commitdf1536b00473e18e2911911c5ec323a01c7f070b (patch)
tree57a3c602d7f8ec4d69fc04cb7fe3ce310d5c84f6 /plugins/PluginUpdater/src/PluginUpdater.cpp
parent279001d256a5bc6075284c76d65bf64c420acc7c (diff)
2 radiobuttons changed to 1 checkbutton for platform change
git-svn-id: http://svn.miranda-ng.org/main/trunk@16929 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/PluginUpdater.cpp')
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index 50d98c1904..b58d7a8e78 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -70,7 +70,11 @@ extern "C" __declspec(dllexport) int Load(void)
InitServices();
#endif
-
+ ptrT oldbin(db_get_tsa(NULL, MODNAME, "OldBin"));
+ if (oldbin) {
+ SafeDeleteFile(oldbin);
+ db_unset(NULL, MODNAME, "OldBin");
+ }
db_set_b(NULL, MODNAME, DB_SETTING_NEED_RESTART, 0);
DWORD dwLen = GetTempPath(_countof(g_tszTempPath), g_tszTempPath);