summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-19 13:39:51 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-19 13:39:51 +0300
commit4f96ac493ef8e912cd1507fe79e4831a8cf7efb0 (patch)
tree1353aaa74990b265161a7ac97191d6983bb6f01c /protocols/Telegram
parentffd5d3db80f0f4d97747e2810ea55b7fb9a3ad98 (diff)
code cleaning
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/proto.cpp2
-rw-r--r--protocols/Telegram/src/utils.cpp2
2 files changed, 2 insertions, 2 deletions
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())