diff options
Diffstat (limited to 'plugins/UserGuide/src/main.cpp')
-rw-r--r-- | plugins/UserGuide/src/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/UserGuide/src/main.cpp b/plugins/UserGuide/src/main.cpp index 33e0181457..ca1b05925a 100644 --- a/plugins/UserGuide/src/main.cpp +++ b/plugins/UserGuide/src/main.cpp @@ -44,12 +44,12 @@ static INT_PTR ShowGuideFile(WPARAM, LPARAM) if (pszDivider == NULL)
{
_tcscpy(pszDirName, _T(""));
- _tcsncpy(pszFileName, ptszHelpFile, _tcslen(ptszHelpFile));
+ _tcsncpy(pszFileName, ptszHelpFile, mir_tstrlen(ptszHelpFile));
}
else
{
- _tcsncpy(pszFileName, pszDivider + 1, _tcslen(ptszHelpFile) - _tcslen(pszDivider) - 1);
- pszFileName[_tcslen(ptszHelpFile) - _tcslen(pszDivider) - 1] = 0;
+ _tcsncpy(pszFileName, pszDivider + 1, mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1);
+ pszFileName[mir_tstrlen(ptszHelpFile) - mir_tstrlen(pszDivider) - 1] = 0;
_tcsncpy(pszDirName, ptszHelpFile, pszDivider - ptszHelpFile);
pszDirName[pszDivider - ptszHelpFile] = 0;
}
|