diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-21 22:00:16 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-21 22:00:16 +0000 |
commit | b81ce648978e75bc7db4cc3b8aa7d1b9fcb9239b (patch) | |
tree | de3eb9058f630682a355ac5135b2efb60256b4ca /plugins/PluginUpdater | |
parent | ff758bb8a00f34eb77fd385b18afea24388a915f (diff) |
MS_UTILS_REPLACEVARS -> Utils_ReplaceVars
git-svn-id: http://svn.miranda-ng.org/main/trunk@14316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
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;
|