diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:18:21 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:18:21 +0000 |
commit | b499ebc740aa5480be013d40e0d8097066800642 (patch) | |
tree | ed410ee863f4afc0c579599741bf38b4e3ffb706 /plugins/BasicHistory/src/Options.cpp | |
parent | 5a17c9299e03bebf46169927abdeee34aaf8e854 (diff) |
replace _tcslen to mir_tstrlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/BasicHistory/src/Options.cpp')
-rw-r--r-- | plugins/BasicHistory/src/Options.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/BasicHistory/src/Options.cpp b/plugins/BasicHistory/src/Options.cpp index 6307b9bffc..f5994e4d2c 100644 --- a/plugins/BasicHistory/src/Options.cpp +++ b/plugins/BasicHistory/src/Options.cpp @@ -806,24 +806,24 @@ bool OpenFileDlg(HWND hwndDlg, HWND hwndEdit, const TCHAR* defName, const TCHAR* _tcscpy_s(extUpper, ext);
extUpper[0] = std::toupper(ext[0], loc);
mir_sntprintf(filter, SIZEOF(filter), TranslateT("%s Files (*.%s)"), extUpper, ext);
- size_t len = _tcslen(filter) + 1;
+ size_t len = mir_tstrlen(filter) + 1;
mir_sntprintf(filter + len, SIZEOF(filter) - len, _T("*.%s"), ext);
- len += _tcslen(filter + len) + 1;
+ len += mir_tstrlen(filter + len) + 1;
_tcscpy_s(filter + len, 1024 - len, TranslateT("All Files (*.*)"));
- len += _tcslen(filter + len) + 1;
+ len += mir_tstrlen(filter + len) + 1;
_tcscpy_s(filter + len, 1024 - len, _T("*.*"));
- len += _tcslen(filter + len) + 1;
+ len += mir_tstrlen(filter + len) + 1;
filter[len] = 0;
TCHAR stzFilePath[1024];
Edit_GetText(hwndEdit, stzFilePath, 1023);
if (stzFilePath[0] == 0) {
_tcscpy_s(stzFilePath, defName);
- len = _tcslen(stzFilePath) + 1;
+ len = mir_tstrlen(stzFilePath) + 1;
stzFilePath[len] = 0;
}
else {
- len = _tcslen(stzFilePath) + 1;
+ len = mir_tstrlen(stzFilePath) + 1;
stzFilePath[len] = 0;
}
|