summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src')
-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())