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/ProfileManager/src/pmanagerEx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/ProfileManager') diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp index 39346ae714..44c62b11c6 100644 --- a/plugins/ProfileManager/src/pmanagerEx.cpp +++ b/plugins/ProfileManager/src/pmanagerEx.cpp @@ -48,7 +48,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) static INT_PTR ChangePM(WPARAM, LPARAM) { - TCHAR fn[MAX_PATH]; + wchar_t fn[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), fn, _countof(fn)); ShellExecute(0, L"open", fn, L"/ForceShowPM", L"", 1); CallService("CloseAction", 0, 0); @@ -57,7 +57,7 @@ static INT_PTR ChangePM(WPARAM, LPARAM) static INT_PTR LoadPM(WPARAM, LPARAM) { - TCHAR fn[MAX_PATH]; + wchar_t fn[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), fn, _countof(fn)); ShellExecute(0, L"open", fn, L"/ForceShowPM", L"", 1); return 0; @@ -66,7 +66,7 @@ static INT_PTR LoadPM(WPARAM, LPARAM) static INT_PTR CheckDb(WPARAM, LPARAM) { if (MessageBox(0, TranslateT("Miranda NG will exit and Database checker will start.\n\nAre you sure you want to do this?"), TranslateT("Check database"), MB_ICONWARNING | MB_YESNO | MB_DEFBUTTON2) == IDYES) { - TCHAR mirandaPath[MAX_PATH], cmdLine[100]; + wchar_t mirandaPath[MAX_PATH], cmdLine[100]; PROCESS_INFORMATION pi; STARTUPINFO si = { 0 }; si.cb = sizeof(si); @@ -112,7 +112,7 @@ extern "C" __declspec(dllexport) int Load(void) CreateServiceFunction(SRV_RESTART_ME, RestartMe); CMenuItem mi; - mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), -500200000); + mi.root = Menu_CreateRoot(MO_MAIN, LPGENW("Database"), -500200000); for (int i = 0; i < _countof(iconList); i++) { mi.name.a = iconList[i].szDescr; -- cgit v1.2.3