From acd4daf132c8ff3b05df7615e95f60be2fb82ddb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 1 Jun 2015 20:40:05 +0000 Subject: various quirks with PROTO_AVATAR_INFORMATION declarations git-svn-id: http://svn.miranda-ng.org/main/trunk@13965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Xfire/src/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'protocols/Xfire/src/main.cpp') diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index ef2bd0e77f..15907ac515 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -1782,17 +1782,15 @@ void SetAvatar(void *arg) if (xsa->hContact == NULL) return; - if (GetAvatar(xsa->username, &av)) - { - PROTO_AVATAR_INFORMATION AI; - AI.format = av.type; - AI.hContact = xsa->hContact; - mir_tstrcpy(AI.filename, _A2T(av.file)); - ProtoBroadcastAck(protocolname, xsa->hContact, ACKTYPE_AVATAR, ACKRESULT_SUCCESS, (HANDLE)&AI, 0); + if (GetAvatar(xsa->username, &av)) { + PROTO_AVATAR_INFORMATION ai; + ai.format = av.type; + ai.hContact = xsa->hContact; + _tcsncpy_s(ai.filename, _A2T(av.file), _TRUNCATE); + ProtoBroadcastAck(protocolname, xsa->hContact, ACKTYPE_AVATAR, ACKRESULT_SUCCESS, (HANDLE)&ai, 0); } delete(xsa); - //ReleaseMutex(hMutex); lasttime -= sleep; } -- cgit v1.2.3