From 43572cc38241b0f716ba0dbf7ec9077a3d5683ef Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 14 Sep 2012 12:33:45 +0000 Subject: 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 --- plugins/PluginUpdater/src/Scanner.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/PluginUpdater/src/Scanner.cpp') 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); -- cgit v1.2.3