From 7f7252104c054002c8b30636ac0b327e915e7b6d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 17 Nov 2016 22:30:41 +0300 Subject: Utils_OpenUrlT Utils_ReplaceVarsT --- protocols/IRCG/src/ircproto.cpp | 2 +- protocols/IRCG/src/options.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/IRCG/src') diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp index b0faf81af6..de31e447f3 100644 --- a/protocols/IRCG/src/ircproto.cpp +++ b/protocols/IRCG/src/ircproto.cpp @@ -213,7 +213,7 @@ int CIrcProto::OnModulesLoaded(WPARAM, LPARAM) wchar_t szTemp[MAX_PATH]; mir_snwprintf(szTemp, L"%%miranda_path%%\\Plugins\\%S_perform.ini", m_szModuleName); - wchar_t *szLoadFileName = Utils_ReplaceVarsT(szTemp); + wchar_t *szLoadFileName = Utils_ReplaceVarsW(szTemp); char* pszPerformData = IrcLoadFile(szLoadFileName); if (pszPerformData != NULL) { char *p1 = pszPerformData, *p2 = pszPerformData; diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp index 4037a5e288..d0df6b7b72 100644 --- a/protocols/IRCG/src/options.cpp +++ b/protocols/IRCG/src/options.cpp @@ -1314,7 +1314,7 @@ void CIrcProto::InitIgnore(void) { wchar_t szTemp[MAX_PATH]; mir_snwprintf(szTemp, L"%%miranda_path%%\\Plugins\\%S_ignore.ini", m_szModuleName); - wchar_t *szLoadFileName = Utils_ReplaceVarsT(szTemp); + wchar_t *szLoadFileName = Utils_ReplaceVarsW(szTemp); char* pszIgnoreData = IrcLoadFile(szLoadFileName); if (pszIgnoreData != NULL) { char *p1 = pszIgnoreData; @@ -1844,14 +1844,14 @@ static void sttImportIni(const wchar_t* szIniFile) void InitServers() { - wchar_t *szTemp = Utils_ReplaceVarsT(L"%miranda_path%\\Plugins\\IRC_servers.ini"); + wchar_t *szTemp = Utils_ReplaceVarsW(L"%miranda_path%\\Plugins\\IRC_servers.ini"); sttImportIni(szTemp); mir_free(szTemp); RereadServers(); if (g_servers.getCount() == 0) { - wchar_t *szIniFile = Utils_ReplaceVarsT(L"%temp%\\default_servers.ini"); + wchar_t *szIniFile = Utils_ReplaceVarsW(L"%temp%\\default_servers.ini"); FILE *serverFile = _wfopen(szIniFile, L"a"); if (serverFile) { char* pszSvrs = (char*)LockResource(LoadResource(hInst, FindResource(hInst, MAKEINTRESOURCE(IDR_SERVERS), L"TEXT"))); -- cgit v1.2.3