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/QuickMessages/src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/QuickMessages/src/main.cpp') diff --git a/plugins/QuickMessages/src/main.cpp b/plugins/QuickMessages/src/main.cpp index 4c3e63473c..c3ee162400 100644 --- a/plugins/QuickMessages/src/main.cpp +++ b/plugins/QuickMessages/src/main.cpp @@ -98,7 +98,7 @@ static int InputMenuPopup(WPARAM wParam,LPARAM lParam) hData= GetClipboardData(CF_UNICODETEXT); chBuffer= (TCHAR*)GlobalLock(hData); - textLength=(int)_tcslen(chBuffer); + textLength=(int)mir_tstrlen(chBuffer); pszCBText=mir_tstrdup(chBuffer); GlobalUnlock(hData); CloseClipboard(); @@ -115,7 +115,7 @@ static int InputMenuPopup(WPARAM wParam,LPARAM lParam) SendMessage(mwpd->hwnd,EM_GETSELTEXT, 0, (LPARAM)pszText); } if(qd->ptszValue){ - ptszQValue=ParseString(mwpd->hContact,qd->ptszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)_tcslen(qd->ptszValue),textlenght,pszCBText?(int)_tcslen(pszCBText):0); + ptszQValue=ParseString(mwpd->hContact,qd->ptszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)mir_tstrlen(qd->ptszValue),textlenght,pszCBText?(int)mir_tstrlen(pszCBText):0); if ((bIsService=qd->bIsService)&&ptszQValue) CallService(mir_u2a(ptszQValue),(WPARAM)mwpd->hContact,0); @@ -173,7 +173,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam) hData= GetClipboardData(CF_UNICODETEXT); chBuffer= (TCHAR*)GlobalLock(hData); - textLength=(int)_tcslen(chBuffer); + textLength=(int)mir_tstrlen(chBuffer); pszCBText=mir_tstrdup(chBuffer); GlobalUnlock(hData); CloseClipboard(); @@ -206,7 +206,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam) switch(state) { case 1: if(ButtonsList[cbcd->dwButtonId]->ptszQValue) - ptszQValue = ParseString(cbcd->hContact,ButtonsList[cbcd->dwButtonId]->ptszQValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)_tcslen(ButtonsList[cbcd->dwButtonId]->ptszQValue),textlenght,pszCBText?(int)_tcslen(pszCBText):0); + ptszQValue = ParseString(cbcd->hContact,ButtonsList[cbcd->dwButtonId]->ptszQValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)mir_tstrlen(ButtonsList[cbcd->dwButtonId]->ptszQValue),textlenght,pszCBText?(int)mir_tstrlen(pszCBText):0); if ((bIsService = ButtonsList[cbcd->dwButtonId]->bIsServName) && ptszQValue) CallService(mir_u2a(ptszQValue),(WPARAM)cbcd->hContact,0); break; @@ -215,7 +215,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam) { ButtonData *bd = (ButtonData *)sl->items[0]; if(bd && bd->pszValue){ - ptszQValue = ParseString(cbcd->hContact,bd->pszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)_tcslen(bd->pszValue),textlenght,pszCBText?(int)_tcslen(pszCBText):0); + ptszQValue = ParseString(cbcd->hContact,bd->pszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)mir_tstrlen(bd->pszValue),textlenght,pszCBText?(int)mir_tstrlen(pszCBText):0); if ((bIsService = bd->bIsServName)&&ptszQValue) CallService(mir_u2a(ptszQValue),(WPARAM)cbcd->hContact,0); } @@ -263,7 +263,7 @@ static int CustomButtonPressed(WPARAM wParam,LPARAM lParam) bd= (ButtonData *)sl->items[res-1]; bCTRL=(GetKeyState(VK_CONTROL)&0x8000)?1:0; if(bd->pszValue){ - ptszQValue=ParseString(cbcd->hContact,bd->pszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)_tcslen(bd->pszValue),textlenght,pszCBText?(int)_tcslen(pszCBText):0); + ptszQValue=ParseString(cbcd->hContact,bd->pszValue,pszText?pszText:_T(""),pszCBText?pszCBText:_T(""),(int)mir_tstrlen(bd->pszValue),textlenght,pszCBText?(int)mir_tstrlen(pszCBText):0); if ((bIsService=bd->bIsServName)&&ptszQValue) CallService(mir_u2a(ptszQValue),(WPARAM)cbcd->hContact,0); } -- cgit v1.2.3