From 4f96ac493ef8e912cd1507fe79e4831a8cf7efb0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jan 2024 13:39:51 +0300 Subject: code cleaning --- protocols/Telegram/src/proto.cpp | 2 +- protocols/Telegram/src/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Telegram') diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 8d15a38f33..b506218b48 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -357,7 +357,7 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT) MEVENT CTelegramProto::RecvFile(MCONTACT hContact, PROTORECVFILE *pre) { - auto *ft = (TG_FILE_REQUEST *)pre->lParam; + auto *ft = (TG_FILE_REQUEST *)pre->pUserInfo; return (ft->m_bRecv) ? CSuper::RecvFile(hContact, pre) : 0; } diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index ddf70e97ea..48445a4a45 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -408,7 +408,7 @@ bool CTelegramProto::GetMessageFile( pre.fileCount = 1; pre.timestamp = pMsg->date_; pre.files.a = &pszFileName; - pre.lParam = (LPARAM)pRequest; + pre.pUserInfo = pRequest; pre.szId = pszId; pre.szUserId = pszUserId; if (!caption.empty()) -- cgit v1.2.3