diff options
Diffstat (limited to 'src/modules/options')
-rw-r--r-- | src/modules/options/filter.cpp | 10 | ||||
-rw-r--r-- | src/modules/options/filter.h | 2 |
2 files changed, 6 insertions, 6 deletions
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;
}
|