diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:24:40 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:24:40 +0000 |
commit | a371c34e0720a4d41a81da6b0cede16c5cf8779d (patch) | |
tree | 88da0eeb2955d8e20618be4a57de43c08e9888b9 /protocols/ICQCorp | |
parent | b499ebc740aa5480be013d40e0d8097066800642 (diff) |
replace lstrlen to mir_tstrlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13749 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/ICQCorp')
-rw-r--r-- | protocols/ICQCorp/src/protocol.cpp | 6 | ||||
-rw-r--r-- | protocols/ICQCorp/src/services.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/protocols/ICQCorp/src/protocol.cpp b/protocols/ICQCorp/src/protocol.cpp index 439add0b1e..29fcebed90 100644 --- a/protocols/ICQCorp/src/protocol.cpp +++ b/protocols/ICQCorp/src/protocol.cpp @@ -2207,12 +2207,12 @@ void ICQ::addUrl(ICQUser *u, char *m, unsigned short theCmd, unsigned short theS CCSDATA ccs;
PROTORECVEVENT pre;
- messageLen = lstrlen(m);
+ messageLen = mir_tstrlen(m);
for (i=0; i<messageLen; i++) if (m[i] == (char)0xFE) m[i] = 0;
url = new char[messageLen + 1];
- lstrcpy(url, m + lstrlen(m) + 1);
- lstrcpy(url + lstrlen(url) + 1, m);
+ lstrcpy(url, m + mir_tstrlen(m) + 1);
+ lstrcpy(url + mir_tstrlen(url) + 1, m);
ccs.hContact = u->hContact;
ccs.szProtoService = PSR_URL;
diff --git a/protocols/ICQCorp/src/services.cpp b/protocols/ICQCorp/src/services.cpp index 20796a0efb..fcc37c8dbd 100644 --- a/protocols/ICQCorp/src/services.cpp +++ b/protocols/ICQCorp/src/services.cpp @@ -217,7 +217,7 @@ static INT_PTR icqRecvMessage(WPARAM wParam, LPARAM lParam) dbei.timestamp = pre->timestamp;
dbei.flags = pre->flags & (PREF_CREATEREAD ? DBEF_READ : 0);
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.cbBlob = lstrlen(pre->szMessage) + 1;
+ dbei.cbBlob = mir_tstrlen(pre->szMessage) + 1;
dbei.pBlob = (PBYTE)pre->szMessage;
db_event_add(ccs->hContact, &dbei);
return 0;
@@ -253,14 +253,14 @@ static INT_PTR icqRecvUrl(WPARAM wParam, LPARAM lParam) T("[ ] recieve url\n");
db_unset(ccs->hContact, "CList", "Hidden");
- pszDescr = pre->szMessage + lstrlen(pre->szMessage) + 1;
+ pszDescr = pre->szMessage + mir_tstrlen(pre->szMessage) + 1;
ZeroMemory(&dbei, sizeof(dbei));
dbei.cbSize = sizeof(dbei);
dbei.szModule = protoName;
dbei.timestamp = pre->timestamp;
dbei.flags = pre->flags & (PREF_CREATEREAD ? DBEF_READ : 0);
dbei.eventType = EVENTTYPE_URL;
- dbei.cbBlob = lstrlen(pre->szMessage) + lstrlen(pszDescr) + 2;
+ dbei.cbBlob = mir_tstrlen(pre->szMessage) + mir_tstrlen(pszDescr) + 2;
dbei.pBlob = (PBYTE)pre->szMessage;
db_event_add(ccs->hContact, &dbei);
return 0;
|