diff options
author | George Hazan <george.hazan@gmail.com> | 2012-09-14 12:33:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-09-14 12:33:45 +0000 |
commit | 43572cc38241b0f716ba0dbf7ec9077a3d5683ef (patch) | |
tree | 039f71bd99107b2f96c109abdaf80ad3d74152cd /plugins/PluginUpdater | |
parent | 1b6becfd04a7f52a9fdf2d51b04375c52814925b (diff) |
fix for upgrading profile from 32 to 64 bits
git-svn-id: http://svn.miranda-ng.org/main/trunk@1572 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/Scanner.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/PluginUpdater/src/Scanner.cpp b/plugins/PluginUpdater/src/Scanner.cpp index 0c267602c8..abac7a4c0a 100644 --- a/plugins/PluginUpdater/src/Scanner.cpp +++ b/plugins/PluginUpdater/src/Scanner.cpp @@ -142,6 +142,14 @@ static void CheckUpdates(void *) DBWriteContactSettingTString(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
DBGetContactSettingTString(NULL, MODNAME, "UpdateURL", &dbVar);
}
+ else {
+ #ifdef WIN64
+ if (_tcsstr(dbVar.ptszVal, _T"x32")) {
+ DBWriteContactSettingTString(NULL, MODNAME, "UpdateURL", _T(DEFAULT_UPDATE_URL));
+ DBGetContactSettingTString(NULL, MODNAME, "UpdateURL", &dbVar);
+ }
+ #endif
+ }
TCHAR* tszBaseUrl = NEWTSTR_ALLOCA(dbVar.ptszVal);
DBFreeVariant(&dbVar);
|