From b499ebc740aa5480be013d40e0d8097066800642 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 10:18:21 +0000 Subject: replace _tcslen to mir_tstrlen git-svn-id: http://svn.miranda-ng.org/main/trunk@13748 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/options/filter.cpp | 10 +++++----- src/modules/options/filter.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/options') diff --git a/src/modules/options/filter.cpp b/src/modules/options/filter.cpp index aa7e2ca7aa..982fe77399 100644 --- a/src/modules/options/filter.cpp +++ b/src/modules/options/filter.cpp @@ -62,7 +62,7 @@ void AddTreeViewNodes(HWND hWndDlg, PageHash key, HTREEITEM root) item.cchTextMax = SIZEOF(title); if (TreeView_GetItem(hWndDlg, &item)) - if (_tcslen(title) > 0) + if (mir_tstrlen(title) > 0) AddFilterString(key, title); HTREEITEM child = root; @@ -79,7 +79,7 @@ void AddDialogString(HWND hWndDlg, const PageHash key) { TCHAR title[2048]; GetWindowText(hWndDlg, title, SIZEOF(title)); - if (_tcslen(title) > 0) + if (mir_tstrlen(title) > 0) AddFilterString(key, title); TCHAR szClass[64]; @@ -99,7 +99,7 @@ void AddDialogString(HWND hWndDlg, const PageHash key) int res = ListBox_GetText(hWndDlg, i, title); if (res != LB_ERR) { title[SIZEOF(title) - 1] = 0; - if (_tcslen(title) > 0) + if (mir_tstrlen(title) > 0) AddFilterString(key, title); } } @@ -113,7 +113,7 @@ void AddDialogString(HWND hWndDlg, const PageHash key) title[0] = 0; //safety ListView_GetItemText(hWndDlg, i, 0, title, SIZEOF(title)); - if (_tcslen(title) > 0) + if (mir_tstrlen(title) > 0) AddFilterString(key, title); } return; @@ -128,7 +128,7 @@ void AddDialogString(HWND hWndDlg, const PageHash key) if (res != CB_ERR) { title[SIZEOF(title) - 1] = 0; - if (_tcslen(title) > 0) + if (mir_tstrlen(title) > 0) AddFilterString(key, title); } } diff --git a/src/modules/options/filter.h b/src/modules/options/filter.h index 261c99b342..590f74a76f 100644 --- a/src/modules/options/filter.h +++ b/src/modules/options/filter.h @@ -36,7 +36,7 @@ void GetDialogStrings(int enableKeywordFiltering, const PageHash key, TCHAR *plu _inline TCHAR *_tcslwr_locale(TCHAR *buf) { - LCMapString(Langpack_GetDefaultLocale() , LCMAP_LOWERCASE, buf, (int)_tcslen(buf), buf, (int)_tcslen(buf)); + LCMapString(Langpack_GetDefaultLocale() , LCMAP_LOWERCASE, buf, (int)mir_tstrlen(buf), buf, (int)mir_tstrlen(buf)); return buf; } -- cgit v1.2.3