diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2016-06-06 17:23:07 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2016-06-06 17:23:07 +0000 |
commit | df1536b00473e18e2911911c5ec323a01c7f070b (patch) | |
tree | 57a3c602d7f8ec4d69fc04cb7fe3ce310d5c84f6 /plugins/PluginUpdater/src/PluginUpdater.cpp | |
parent | 279001d256a5bc6075284c76d65bf64c420acc7c (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.cpp | 6 |
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);
|