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/GmailNotifier/src/notify.cpp | 46 ++++++++++++++++++------------------ 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'plugins/GmailNotifier/src/notify.cpp') diff --git a/plugins/GmailNotifier/src/notify.cpp b/plugins/GmailNotifier/src/notify.cpp index a684e5ff0c..cf6cb8b06e 100644 --- a/plugins/GmailNotifier/src/notify.cpp +++ b/plugins/GmailNotifier/src/notify.cpp @@ -80,7 +80,7 @@ void NotifyUser(Account *curAcc) resultLink *prst = curAcc->results.next; for (int i = 0; i < newMails; i++) { - dbei.cbBlob = lstrlenA(prst->content) + 1; + dbei.cbBlob = mir_strlen(prst->content) + 1; dbei.pBlob = (PBYTE)prst->content; db_event_add(curAcc->hContact, &dbei); prst = prst->next; @@ -103,7 +103,7 @@ void NotifyUser(Account *curAcc) ppd.lchContact = curAcc->hContact; ppd.lchIcon = LoadSkinnedProtoIcon(pluginName, ID_STATUS_OCCUPIED); - lstrcpyA(ppd.lpzContactName, curAcc->results.content); + mir_strcpy(ppd.lpzContactName, curAcc->results.content); resultLink *prst = curAcc->results.next; for (int i = 0; i < 5 && i < newMails; i++) { strcat(ppd.lpzText, prst->content); @@ -151,12 +151,12 @@ void __cdecl Login_ThreadFunc(void *lpParam) if (GetBrowser(lpPathBuffer)) { if (opt.AutoLogin == 0) { if (curAcc->hosted[0]) { - lstrcatA(lpPathBuffer, "https://mail.google.com/a/"); - lstrcatA(lpPathBuffer, curAcc->hosted); - lstrcatA(lpPathBuffer, "/?logout"); + mir_strcat(lpPathBuffer, "https://mail.google.com/a/"); + mir_strcat(lpPathBuffer, curAcc->hosted); + mir_strcat(lpPathBuffer, "/?logout"); } else { - lstrcatA(lpPathBuffer, "https://mail.google.com/mail/?logout"); + mir_strcat(lpPathBuffer, "https://mail.google.com/mail/?logout"); } } else { @@ -165,29 +165,29 @@ void __cdecl Login_ThreadFunc(void *lpParam) GetTempFileNameA(buffer, "gmail", 0, szTempName); hTempFile = CreateFileA(szTempName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL); - lstrcpyA(buffer, FORMDATA1); - lstrcatA(buffer, curAcc->hosted); - lstrcatA(buffer, FORMDATA2); - lstrcatA(buffer, curAcc->hosted); - lstrcatA(buffer, FORMDATA3); - lstrcatA(buffer, ""); - WriteFile(hTempFile, buffer, lstrlenA(buffer), &dwBytesWritten, NULL); + mir_strcat(buffer, ">"); + WriteFile(hTempFile, buffer, mir_strlen(buffer), &dwBytesWritten, NULL); CloseHandle(hTempFile); - lstrcatA(lpPathBuffer, szTempName); + mir_strcat(lpPathBuffer, szTempName); } else { - lstrcatA(lpPathBuffer, LINK); - lstrcatA(lpPathBuffer, mir_urlEncode(curAcc->name)); - lstrcatA(lpPathBuffer, "&Passwd="); - lstrcatA(lpPathBuffer, mir_urlEncode(curAcc->pass)); + mir_strcat(lpPathBuffer, LINK); + mir_strcat(lpPathBuffer, mir_urlEncode(curAcc->name)); + mir_strcat(lpPathBuffer, "&Passwd="); + mir_strcat(lpPathBuffer, mir_urlEncode(curAcc->pass)); if (opt.AutoLogin == 1) - lstrcatA(lpPathBuffer, "&PersistentCookie=yes"); + mir_strcat(lpPathBuffer, "&PersistentCookie=yes"); } } } -- cgit v1.2.3