From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ContextHelp/src/helppack.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ContextHelp/src/helppack.cpp') diff --git a/plugins/ContextHelp/src/helppack.cpp b/plugins/ContextHelp/src/helppack.cpp index 71f6e50de0..0c1e97e8b2 100644 --- a/plugins/ContextHelp/src/helppack.cpp +++ b/plugins/ContextHelp/src/helppack.cpp @@ -174,7 +174,7 @@ static BOOL LoadPackData(HELPPACK_INFO *pack, BOOL fEnabledPacks, const char *ps */ if (!GetPackPath(szFileName, _countof(szFileName), fEnabledPacks, pack->szFileName)) return FALSE; - FILE *fp = _tfopen(szFileName, _T("rt")); + FILE *fp = _tfopen(szFileName, L"rt"); if (fp == NULL) return FALSE; fgets(line, sizeof(line), fp); @@ -269,7 +269,7 @@ BOOL GetPackPath(TCHAR *pszPath, int nSize, BOOL fEnabledPacks, const TCHAR *psz if (!fEnabledPacks) { if (nSize<(lstrlen(pszPath) + 10)) return FALSE; - lstrcat(pszPath, _T("Languages\\")); + lstrcat(pszPath, L"Languages\\"); } /* file name */ if (pszFile != NULL) { @@ -430,7 +430,7 @@ void CorrectPacks(const TCHAR *pszFilePattern, const TCHAR *pszDefaultFile, BOOL *pszFile = _T('\0'); /* move wrongly placed packs from 'Plugins' to 'Language' */ - mir_sntprintf(szFrom, _T("%s\\Plugins\\%s"), szDir, pszFilePattern); + mir_sntprintf(szFrom, L"%s\\Plugins\\%s", szDir, pszFilePattern); WIN32_FIND_DATA wfd; HANDLE hFind = FindFirstFile(szFrom, &wfd); if (hFind != INVALID_HANDLE_VALUE) { @@ -446,7 +446,7 @@ void CorrectPacks(const TCHAR *pszFilePattern, const TCHAR *pszDefaultFile, BOOL /* move file */ if (GetPackPath(szDest, _countof(szDest), FALSE, wfd.cFileName)) { - mir_sntprintf(szFrom, _T("%s\\Plugins\\%s"), szDir, wfd.cFileName); + mir_sntprintf(szFrom, L"%s\\Plugins\\%s", szDir, wfd.cFileName); if (!MoveFile(szFrom, szDest) && GetLastError() == ERROR_ALREADY_EXISTS) { DeleteFile(szDest); MoveFile(szFrom, szDest); -- cgit v1.2.3