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/OpenFolder/src/openFolder.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/OpenFolder') diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp index ed9cb35cf4..8c6e7e62ad 100644 --- a/plugins/OpenFolder/src/openFolder.cpp +++ b/plugins/OpenFolder/src/openFolder.cpp @@ -29,9 +29,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) static INT_PTR MenuCommand_OpenFolder(WPARAM, LPARAM) { - TCHAR szMirandaPath[MAX_PATH]; + wchar_t szMirandaPath[MAX_PATH]; GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, _countof(szMirandaPath)); - TCHAR *p = _tcsrchr(szMirandaPath, '\\'); + wchar_t *p = wcsrchr(szMirandaPath, '\\'); if (p) p[1] = 0; @@ -91,8 +91,8 @@ extern "C" int __declspec(dllexport) Load() hotkey.cbSize = sizeof(hotkey); hotkey.dwFlags = HKD_TCHAR; hotkey.pszName = "Open Folder"; - hotkey.ptszDescription = LPGENT("Open Folder"); - hotkey.ptszSection = LPGENT("Main"); + hotkey.ptszDescription = LPGENW("Open Folder"); + hotkey.ptszSection = LPGENW("Main"); hotkey.pszService = MS_OPENFOLDER_OPEN; hotkey.DefHotKey = MAKEWORD( 'O', HOTKEYF_SHIFT | HOTKEYF_ALT ); Hotkey_Register(&hotkey); @@ -102,7 +102,7 @@ extern "C" int __declspec(dllexport) Load() mi.position = 0x7FFFFFFF; mi.flags = CMIF_TCHAR; mi.hIcolibItem = icon.hIcolib; - mi.name.t = LPGENT("Open Folder"); + mi.name.w = LPGENW("Open Folder"); mi.pszService = MS_OPENFOLDER_OPEN; Menu_AddMainMenuItem(&mi); -- cgit v1.2.3