diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-26 14:41:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-26 14:41:21 +0300 |
commit | be1918c1b2986ddb387cd593deddf120f9e61874 (patch) | |
tree | cedf0b0983817b488edcc7eb604f2d44a75c935f /protocols/MRA | |
parent | 91c5b3baaf5ac2790a99015afcfbf696dff682ca (diff) |
fix for chat structures declaration
Diffstat (limited to 'protocols/MRA')
-rw-r--r-- | protocols/MRA/src/MraOfflineMsg.cpp | 2 | ||||
-rw-r--r-- | protocols/MRA/src/Mra_functions.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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)
|