diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-19 13:39:51 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-19 13:39:51 +0300 |
commit | 4f96ac493ef8e912cd1507fe79e4831a8cf7efb0 (patch) | |
tree | 1353aaa74990b265161a7ac97191d6983bb6f01c /protocols/Telegram | |
parent | ffd5d3db80f0f4d97747e2810ea55b7fb9a3ad98 (diff) |
code cleaning
Diffstat (limited to 'protocols/Telegram')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 2 |
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())
|