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 --- plugins/WhenWasIt/src/dlg_handlers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/WhenWasIt/src/dlg_handlers.cpp') diff --git a/plugins/WhenWasIt/src/dlg_handlers.cpp b/plugins/WhenWasIt/src/dlg_handlers.cpp index 1f9ae0e06f..04716317e4 100644 --- a/plugins/WhenWasIt/src/dlg_handlers.cpp +++ b/plugins/WhenWasIt/src/dlg_handlers.cpp @@ -124,7 +124,7 @@ SIZE GetControlTextSize(HWND hCtrl) TCHAR buffer[maxSize]; SIZE size; GetWindowText(hCtrl, buffer, SIZEOF(buffer)); - GetTextExtentPoint32(hDC, buffer, (int)_tcslen(buffer), &size); + GetTextExtentPoint32(hDC, buffer, (int)mir_tstrlen(buffer), &size); SelectObject(hDC, oldFont); ReleaseDC(hCtrl, hDC); return size; @@ -144,7 +144,7 @@ int EnlargeControl(HWND hCtrl, HWND hGroup, SIZE oldSize) TCHAR *strtrim(TCHAR *str) { size_t i = 0; - size_t len = _tcslen(str); + size_t len = mir_tstrlen(str); while ((i < len) && (str[i] == _T(' '))) { i++; } if (i) { memmove(str, str + i, len - i + 1); -- cgit v1.2.3