diff options
Diffstat (limited to 'plugins/UserGuide/src/main.cpp')
-rw-r--r-- | plugins/UserGuide/src/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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;
}
|