From ac6607c5f76566c2c840ca3955a22448738df9b3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 Jan 2019 15:51:04 +0300 Subject: mir_urlDecode & mir_urlEncode to return CMStringA --- plugins/Weather/src/weather_addstn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_addstn.cpp b/plugins/Weather/src/weather_addstn.cpp index c40fd5c431..7756ac3e39 100644 --- a/plugins/Weather/src/weather_addstn.cpp +++ b/plugins/Weather/src/weather_addstn.cpp @@ -310,7 +310,7 @@ int NameSearchProc(wchar_t *name, const int searchId, WINAMESEARCH *sData, wchar // replace spaces with %20 char loc[256]; T2Utf szSearchName(name); - mir_snprintf(loc, sData->SearchURL, ptrA(mir_urlEncode(szSearchName))); + mir_snprintf(loc, sData->SearchURL, mir_urlEncode(szSearchName).c_str()); if (InternetDownloadFile(loc, nullptr, nullptr, &szData) == 0) { wchar_t* szInfo = szData; search = wcsstr(szInfo, sData->NotFoundStr); // determine if data is available -- cgit v1.2.3