From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserGuide/src/main.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/UserGuide/src') diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 2d591663ba..3f37ede40b 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -28,28 +28,28 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) if (ptszHelpFile==0) { - mir_tstrcpy(pszDirName, L"%miranda_path%\\Plugins"); - mir_tstrcpy(pszFileName, L"UserGuide.chm"); + mir_wstrcpy(pszDirName, L"%miranda_path%\\Plugins"); + mir_wstrcpy(pszFileName, L"UserGuide.chm"); } else { - if(!mir_tstrcmp(ptszHelpFile, L"")) + if(!mir_wstrcmp(ptszHelpFile, L"")) { - mir_tstrcpy(pszDirName, L"%miranda_path%\\Plugins"); - mir_tstrcpy(pszFileName, L"UserGuide.chm"); + mir_wstrcpy(pszDirName, L"%miranda_path%\\Plugins"); + mir_wstrcpy(pszFileName, L"UserGuide.chm"); } else { LPTSTR pszDivider = wcsrchr(ptszHelpFile, '\\'); if (pszDivider == NULL) { - mir_tstrcpy(pszDirName, L""); - wcsncpy(pszFileName, ptszHelpFile, mir_tstrlen(ptszHelpFile)); + mir_wstrcpy(pszDirName, L""); + wcsncpy(pszFileName, ptszHelpFile, mir_wstrlen(ptszHelpFile)); } else { - wcsncpy(pszFileName, pszDivider + 1, mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1); - pszFileName[mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1] = 0; + wcsncpy(pszFileName, pszDivider + 1, mir_wstrlen(ptszHelpFile) - mir_wstrlen(pszDivider) - 1); + pszFileName[mir_wstrlen(ptszHelpFile) - mir_wstrlen(pszDivider) - 1] = 0; wcsncpy(pszDirName, ptszHelpFile, pszDivider - ptszHelpFile); pszDirName[pszDivider - ptszHelpFile] = 0; } -- cgit v1.2.3