From b81ce648978e75bc7db4cc3b8aa7d1b9fcb9239b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 Jun 2015 22:00:16 +0000 Subject: MS_UTILS_REPLACEVARS -> Utils_ReplaceVars git-svn-id: http://svn.miranda-ng.org/main/trunk@14316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/PluginUpdater/src/Utils.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'plugins/PluginUpdater') diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 1ea04d468d..296fe7ffb6 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -113,18 +113,15 @@ int CompareHashes(const ServListEntry *p1, const ServListEntry *p2) bool ParseHashes(const TCHAR *ptszUrl, ptrT &baseUrl, SERVLIST &arHashes) { REPLACEVARSARRAY vars[2]; - vars[0].lptzKey = _T("platform"); + vars[0].key.t = _T("platform"); #ifdef _WIN64 - vars[0].lptzValue = _T("64"); + vars[0].value.t = _T("64"); #else - vars[0].lptzValue = _T("32"); + vars[0].value.t = _T("32"); #endif - vars[1].lptzKey = vars[1].lptzValue = 0; + vars[1].key.t = vars[1].value.t = 0; - REPLACEVARSDATA dat = { sizeof(REPLACEVARSDATA) }; - dat.dwFlags = RVF_TCHAR; - dat.variables = vars; - baseUrl = (TCHAR*)CallService(MS_UTILS_REPLACEVARS, (WPARAM)ptszUrl, (LPARAM)&dat); + baseUrl = Utils_ReplaceVarsT(ptszUrl, 0, vars); // Download version info FILEURL pFileUrl; -- cgit v1.2.3