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/Tlen/src/tlen_svc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Tlen') diff --git a/protocols/Tlen/src/tlen_svc.cpp b/protocols/Tlen/src/tlen_svc.cpp index c078194007..a6adc2dc97 100644 --- a/protocols/Tlen/src/tlen_svc.cpp +++ b/protocols/Tlen/src/tlen_svc.cpp @@ -665,10 +665,10 @@ INT_PTR TlenProtocol::GetAvatarInfo(WPARAM wParam, LPARAM lParam) char *avatarHash = NULL; TLEN_LIST_ITEM *item = NULL; DBVARIANT dbv; - PROTO_AVATAR_INFORMATION* AI = ( PROTO_AVATAR_INFORMATION* )lParam; + PROTO_AVATAR_INFORMATION *pai = (PROTO_AVATAR_INFORMATION*)lParam; - if (AI->hContact != NULL) { - if (!db_get(AI->hContact, m_szModuleName, "jid", &dbv)) { + if (pai->hContact != NULL) { + if (!db_get(pai->hContact, m_szModuleName, "jid", &dbv)) { item = TlenListGetItemPtr(this, LIST_ROSTER, dbv.pszVal); db_free(&dbv); if (item != NULL) { @@ -684,13 +684,13 @@ INT_PTR TlenProtocol::GetAvatarInfo(WPARAM wParam, LPARAM lParam) return GAIR_NOAVATAR; if (avatarHash != NULL && !downloadingAvatar) { - TlenGetAvatarFileName(this, item, AI->filename, SIZEOF(AI->filename)-1); - AI->format = ( AI->hContact == NULL ) ? threadData->avatarFormat : item->avatarFormat; + TlenGetAvatarFileName(this, item, pai->filename, SIZEOF(pai->filename)-1); + pai->format = ( pai->hContact == NULL ) ? threadData->avatarFormat : item->avatarFormat; return GAIR_SUCCESS; } /* get avatar */ - if (( wParam & GAIF_FORCE ) != 0 && AI->hContact != NULL && isOnline) + if (( wParam & GAIF_FORCE ) != 0 && pai->hContact != NULL && isOnline) return GAIR_WAITFOR; return GAIR_NOAVATAR; -- cgit v1.2.3