diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:27:55 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:27:55 +0000 |
commit | 2ad5305d32e3e85d511ce81a7273b9de7c05d4ed (patch) | |
tree | c82101cb7e69f460ffa8af0718700ccbb5de6575 /protocols | |
parent | a371c34e0720a4d41a81da6b0cede16c5cf8779d (diff) |
replace lstrlenA to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13750 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Steam/src/steam_contacts.cpp | 10 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 8f8455b710..313e765b41 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -628,7 +628,7 @@ void CSteamProto::OnAuthRequested(const NETLIBHTTPREQUEST *response, void *arg) mir_snprintf(reason, SIZEOF(reason), Translate("%s has added you to his or her Friend List"), nickName); // blob is: 0(DWORD), hContact(DWORD), nick(ASCIIZ), firstName(ASCIIZ), lastName(ASCIIZ), sid(ASCIIZ), reason(ASCIIZ) - DWORD cbBlob = (DWORD)(sizeof(DWORD)* 2 + lstrlenA(nickName) + lstrlenA(firstName) + lstrlenA(lastName) + lstrlenA(steamId) + lstrlenA(reason) + 5); + DWORD cbBlob = (DWORD)(sizeof(DWORD)* 2 + mir_strlen(nickName) + mir_strlen(firstName) + mir_strlen(lastName) + mir_strlen(steamId) + mir_strlen(reason) + 5); PBYTE pBlob, pCurBlob; pCurBlob = pBlob = (PBYTE)mir_alloc(cbBlob); @@ -638,13 +638,13 @@ void CSteamProto::OnAuthRequested(const NETLIBHTTPREQUEST *response, void *arg) *((PDWORD)pCurBlob) = (DWORD)hContact; pCurBlob += sizeof(DWORD); strcpy((char*)pCurBlob, nickName); - pCurBlob += lstrlenA(nickName) + 1; + pCurBlob += mir_strlen(nickName) + 1; strcpy((char*)pCurBlob, firstName); - pCurBlob += lstrlenA(firstName) + 1; + pCurBlob += mir_strlen(firstName) + 1; strcpy((char*)pCurBlob, lastName); - pCurBlob += lstrlenA(lastName) + 1; + pCurBlob += mir_strlen(lastName) + 1; strcpy((char*)pCurBlob, steamId); - pCurBlob += lstrlenA(steamId) + 1; + pCurBlob += mir_strlen(steamId) + 1; strcpy((char*)pCurBlob, reason); AddDBEvent(hContact, EVENTTYPE_AUTHREQUEST, time(NULL), DBEF_UTF, cbBlob, pBlob); diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 9196e03aa5..2844492aa6 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -237,7 +237,7 @@ HANDLE __cdecl CSteamProto::SearchBasic(const TCHAR* id) int __cdecl CSteamProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT* pre) { - return (INT_PTR)AddDBEvent(hContact, EVENTTYPE_MESSAGE, pre->timestamp, DBEF_UTF, lstrlenA(pre->szMessage), (BYTE*)pre->szMessage); + return (INT_PTR)AddDBEvent(hContact, EVENTTYPE_MESSAGE, pre->timestamp, DBEF_UTF, mir_strlen(pre->szMessage), (BYTE*)pre->szMessage); } int __cdecl CSteamProto::SendMsg(MCONTACT hContact, int, const char *msg) |