summaryrefslogtreecommitdiff
path: root/plugins/OpenFolder
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-26 09:20:25 +0000
commit6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac (patch)
tree2e8bb660c908b54914abd562af8aafa4a486c846 /plugins/OpenFolder
parenta61c8728b379057fe7f0a0d86fe0b037598229dd (diff)
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
Diffstat (limited to 'plugins/OpenFolder')
-rw-r--r--plugins/OpenFolder/src/openFolder.cpp10
1 files changed, 5 insertions, 5 deletions
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);