From 688f55ba998c19304a29727c910504903f4cc49a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 18:51:36 +0000 Subject: lstr* replacements git-svn-id: http://svn.miranda-ng.org/main/trunk@11176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msgdialog.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/Scriver/src/msgdialog.cpp') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index e471643fc2..596af74bae 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -171,7 +171,7 @@ int RTL_Detect(WCHAR *pszwText) { WORD *infoTypeC2; int i; - int iLen = lstrlenW(pszwText); + int iLen = mir_wstrlen(pszwText); infoTypeC2 = (WORD *)mir_alloc(sizeof(WORD) * (iLen + 2)); @@ -201,14 +201,14 @@ static void AddToFileList(TCHAR ***pppFiles,int *totalCount,const TCHAR* szFilen WIN32_FIND_DATA fd; HANDLE hFind; TCHAR szPath[MAX_PATH]; - lstrcpy(szPath,szFilename); - lstrcat(szPath,_T("\\*")); + mir_tstrcpy(szPath,szFilename); + mir_tstrcat(szPath,_T("\\*")); if (( hFind = FindFirstFile( szPath, &fd )) != INVALID_HANDLE_VALUE ) { do { if ( !lstrcmp(fd.cFileName,_T(".")) || !lstrcmp(fd.cFileName,_T(".."))) continue; - lstrcpy(szPath,szFilename); - lstrcat(szPath,_T("\\")); - lstrcat(szPath,fd.cFileName); + mir_tstrcpy(szPath,szFilename); + mir_tstrcat(szPath,_T("\\")); + mir_tstrcat(szPath,fd.cFileName); AddToFileList(pppFiles,totalCount,szPath); } while( FindNextFile( hFind,&fd )); @@ -1167,12 +1167,12 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP if (dat->windowData.hContact) { char buf[128]; GetContactUniqueId(dat, buf, sizeof(buf)); - if (!OpenClipboard(hwndDlg) || !lstrlenA(buf)) + if (!OpenClipboard(hwndDlg) || !mir_strlen(buf)) break; EmptyClipboard(); - HGLOBAL hData = GlobalAlloc(GMEM_MOVEABLE, lstrlenA(buf) + 1); - lstrcpyA((LPSTR)GlobalLock(hData), buf); + HGLOBAL hData = GlobalAlloc(GMEM_MOVEABLE, mir_strlen(buf) + 1); + mir_strcpy((LPSTR)GlobalLock(hData), buf); GlobalUnlock(hData); SetClipboardData(CF_TEXT, hData); CloseClipboard(); -- cgit v1.2.3