From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MimCmd/src/commands.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/MimCmd') diff --git a/plugins/MimCmd/src/commands.cpp b/plugins/MimCmd/src/commands.cpp index b9ba0b26ab..d066dab4af 100644 --- a/plugins/MimCmd/src/commands.cpp +++ b/plugins/MimCmd/src/commands.cpp @@ -35,18 +35,18 @@ char *GetMirandaFolder(char *mimFolder, int size) int ConnectToMiranda() { - TCHAR tszPath[MAX_PATH]; + wchar_t tszPath[MAX_PATH]; GetModuleFileName(NULL, tszPath, _countof(tszPath)); - TCHAR *p = _tcsrchr(tszPath, '\\'); + wchar_t *p = wcsrchr(tszPath, '\\'); if (p) p[1] = 0; - _tcsncat_s(tszPath, L"libs", _TRUNCATE); - DWORD cbPath = (DWORD)_tcslen(tszPath); + wcsncat_s(tszPath, L"libs", _TRUNCATE); + DWORD cbPath = (DWORD)wcslen(tszPath); DWORD cbSize = GetEnvironmentVariable(L"PATH", NULL, 0); - TCHAR *ptszVal = new TCHAR[cbSize + MAX_PATH + 2]; - _tcscpy(ptszVal, tszPath); - _tcscat(ptszVal, L";"); + wchar_t *ptszVal = new wchar_t[cbSize + MAX_PATH + 2]; + wcscpy(ptszVal, tszPath); + wcscat(ptszVal, L";"); GetEnvironmentVariable(L"PATH", ptszVal + cbPath + 1, cbSize); SetEnvironmentVariable(L"PATH", ptszVal); delete[] ptszVal; -- cgit v1.2.3