summaryrefslogtreecommitdiff
path: root/plugins/UserGuide/src
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/UserGuide/src
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/UserGuide/src')
-rw-r--r--plugins/UserGuide/src/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp
index 9492c6896b..2d591663ba 100644
--- a/plugins/UserGuide/src/main.cpp
+++ b/plugins/UserGuide/src/main.cpp
@@ -21,10 +21,10 @@ PLUGININFOEX pluginInfo = {
static INT_PTR ShowGuideFile(WPARAM, LPARAM)
{
- LPTSTR pszDirName = (LPTSTR)mir_alloc(250*sizeof(TCHAR));
- LPTSTR pszFileName = (LPTSTR)mir_alloc(250*sizeof(TCHAR));
+ LPTSTR pszDirName = (LPTSTR)mir_alloc(250*sizeof(wchar_t));
+ LPTSTR pszFileName = (LPTSTR)mir_alloc(250*sizeof(wchar_t));
- TCHAR *ptszHelpFile = db_get_tsa(NULL, "UserGuide", "PathToHelpFile");
+ wchar_t *ptszHelpFile = db_get_tsa(NULL, "UserGuide", "PathToHelpFile");
if (ptszHelpFile==0)
{
@@ -40,17 +40,17 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM)
}
else
{
- LPTSTR pszDivider = _tcsrchr(ptszHelpFile, '\\');
+ LPTSTR pszDivider = wcsrchr(ptszHelpFile, '\\');
if (pszDivider == NULL)
{
mir_tstrcpy(pszDirName, L"");
- _tcsncpy(pszFileName, ptszHelpFile, mir_tstrlen(ptszHelpFile));
+ wcsncpy(pszFileName, ptszHelpFile, mir_tstrlen(ptszHelpFile));
}
else
{
- _tcsncpy(pszFileName, pszDivider + 1, mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1);
+ wcsncpy(pszFileName, pszDivider + 1, mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1);
pszFileName[mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1] = 0;
- _tcsncpy(pszDirName, ptszHelpFile, pszDivider - ptszHelpFile);
+ wcsncpy(pszDirName, ptszHelpFile, pszDivider - ptszHelpFile);
pszDirName[pszDivider - ptszHelpFile] = 0;
}
}
@@ -87,7 +87,7 @@ extern "C" __declspec(dllexport) int Load(void)
mi.position = 500000;
mi.flags = CMIF_TCHAR;
mi.hIcolibItem = Skin_LoadIcon(SKINICON_OTHER_HELP);
- mi.name.t = LPGENT("User Guide");
+ mi.name.w = LPGENW("User Guide");
mi.pszService = "UserGuide/ShowGuide";
Menu_AddMainMenuItem(&mi);