diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-28 18:39:30 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-06-28 18:39:30 +0000 |
commit | 5a46d2425b7a51c364f9017a44f1d21ce934eb9d (patch) | |
tree | a07262316c885798ca858c2242cc881c006ef6e9 /plugins/PluginUpdater/src/Utils.cpp | |
parent | 59cd198e89782263777c57dcd54704ecb1e10212 (diff) |
compilation fixes for IM Updater
git-svn-id: http://svn.miranda-ng.org/main/trunk@14431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/Utils.cpp')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 296fe7ffb6..2638750363 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -113,6 +113,7 @@ int CompareHashes(const ServListEntry *p1, const ServListEntry *p2) bool ParseHashes(const TCHAR *ptszUrl, ptrT &baseUrl, SERVLIST &arHashes)
{
REPLACEVARSARRAY vars[2];
+#if MIRANDA_VER >=0x0A00
vars[0].key.t = _T("platform");
#ifdef _WIN64
vars[0].value.t = _T("64");
@@ -120,7 +121,15 @@ bool ParseHashes(const TCHAR *ptszUrl, ptrT &baseUrl, SERVLIST &arHashes) vars[0].value.t = _T("32");
#endif
vars[1].key.t = vars[1].value.t = 0;
-
+#else
+ vars[0].lptzKey = _T("platform");
+#ifdef _WIN64
+ vars[0].lptzValue = _T("64");
+#else
+ vars[0].lptzValue = _T("32");
+#endif
+ vars[1].lptzKey = vars[1].lptzValue = 0;
+#endif
baseUrl = Utils_ReplaceVarsT(ptszUrl, 0, vars);
// Download version info
|