From be1918c1b2986ddb387cd593deddf120f9e61874 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 26 Nov 2018 14:41:11 +0300 Subject: fix for chat structures declaration --- protocols/MRA/src/MraOfflineMsg.cpp | 2 +- protocols/MRA/src/Mra_functions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/MRA') diff --git a/protocols/MRA/src/MraOfflineMsg.cpp b/protocols/MRA/src/MraOfflineMsg.cpp index 1495f6d2a2..4c2b621c92 100644 --- a/protocols/MRA/src/MraOfflineMsg.cpp +++ b/protocols/MRA/src/MraOfflineMsg.cpp @@ -141,7 +141,7 @@ static DWORD PlainText2message(const CMStringA &szContentType, const CMStringA & size_t dwTextSize; ptrA lpszText((LPSTR)mir_base64_decode(szBody, &dwTextSize)); if (lpszText) { - plpsText = CMStringA(lpszText, dwTextSize); + plpsText = CMStringA(lpszText, (int)dwTextSize); if (pdwFlags) { (*pdwFlags) |= MESSAGE_FLAG_v1p16; // set unicode flag if not exist (*pdwFlags) &= ~MESSAGE_FLAG_CP1251; // reset ansi flag if exist diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index da212ffd72..39c95922d4 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -526,7 +526,7 @@ MCONTACT CMraProto::MraHContactFromEmail(const CMStringA &szEmail, BOOL bAddIfNe //not already there: add if (IsEMailChatAgent(szEmail)) { CMStringW wszEMail = szEmail; - GCSessionInfoBase *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszEMail, wszEMail); + SESSION_INFO *si = Chat_NewSession(GCW_CHATROOM, m_szModuleName, wszEMail, wszEMail); if (si != nullptr) { bool bChatAdded = (si->hContact != NULL); if (bChatAdded == FALSE) -- cgit v1.2.3