diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-29 21:45:13 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-29 21:45:13 +0000 |
commit | d88e1dd586130798e44682bcb43380d1e3d25412 (patch) | |
tree | ebb1144799baf2fdd451770dd113dc3a23f25cf2 /protocols/MRA/src/MraOfflineMsg.cpp | |
parent | 6571a527400a6b5efc787305f57f3052abd1e761 (diff) |
mra - warning fixes for 64-bit mode
git-svn-id: http://svn.miranda-ng.org/main/trunk@13261 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MRA/src/MraOfflineMsg.cpp')
-rw-r--r-- | protocols/MRA/src/MraOfflineMsg.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/MRA/src/MraOfflineMsg.cpp b/protocols/MRA/src/MraOfflineMsg.cpp index 9c5f5269ec..dd0d93f1c5 100644 --- a/protocols/MRA/src/MraOfflineMsg.cpp +++ b/protocols/MRA/src/MraOfflineMsg.cpp @@ -81,7 +81,7 @@ static DWORD MraOfflineMessageGetHeaderValue(LPSTR lpszHeader, LPSTR lpszHeaderL size_t dwValueSize = lpszValueEnd - lpszValue;
lpszValue = lpszHeader + (lpszValue-lpszHeaderLow);
SkeepSPWSP(lpszValue, dwValueSize, &lpszValue, &dwValueSize);
- plpszValue = CMStringA(lpszValue, dwValueSize);
+ plpszValue = CMStringA(lpszValue, (int)dwValueSize);
return NO_ERROR;
}
}
@@ -229,15 +229,15 @@ DWORD MraOfflineMessageGet(const CMStringA &plpsMsg, DWORD &pdwTime, DWORD &pdwF if (MraOfflineMessageGetHeaderValueLow(lpszMIMEHeaderLow, dwMIMEHeaderSize, "content-type", 12, &lpszMIMEContentType, &dwMIMEContentTypeSize) == NO_ERROR) {
if (MemoryFind(0, lpszMIMEContentType, dwMIMEContentTypeSize, "text/plain", 10)) {
// this is simple text part: text/plain
- return PlainText2message(CMStringA(lpszMIMEContentType, dwMIMEContentTypeSize), CMStringA(lpszMIMEBody, dwMIMEBodySize), plpsText, &pdwFlags);
+ return PlainText2message(CMStringA(lpszMIMEContentType, (int)dwMIMEContentTypeSize), CMStringA(lpszMIMEBody, (int)dwMIMEBodySize), plpsText, &pdwFlags);
}
if (MemoryFind(0, lpszMIMEContentType, dwMIMEContentTypeSize, "application/x-mrim-rtf", 22)) {
- plpsRTFText = CMStringA(lpszMIMEBody, dwMIMEBodySize);
+ plpsRTFText = CMStringA(lpszMIMEBody, (int)dwMIMEBodySize);
pdwFlags |= MESSAGE_FLAG_RTF; // set RTF flag if not exist
return NO_ERROR;
}
if (MemoryFind(0, lpszMIMEContentType, dwMIMEContentTypeSize, "application/x-mrim+xml", 22)) {
- plpsMultiChatData = CMStringA(lpszMIMEBody, dwMIMEBodySize);
+ plpsMultiChatData = CMStringA(lpszMIMEBody, (int)dwMIMEBodySize);
pdwFlags |= MESSAGE_FLAG_MULTICHAT; // set MESSAGE_FLAG_MULTICHAT flag if not exist
return NO_ERROR;
}
@@ -253,10 +253,10 @@ DWORD MraOfflineMessageGet(const CMStringA &plpsMsg, DWORD &pdwTime, DWORD &pdwF }
if (MemoryFind(0, lpszContentTypeLow, dwContentTypeSize, "text/plain", 10))
- return PlainText2message(CMStringA(lpszContentTypeLow, dwContentTypeSize), CMStringA(lpszBody, dwBodySize), plpsText, &pdwFlags);
+ return PlainText2message(CMStringA(lpszContentTypeLow, (int)dwContentTypeSize), CMStringA(lpszBody, (int)dwBodySize), plpsText, &pdwFlags);
if (MemoryFind(0, lpszContentTypeLow, dwContentTypeSize, "application/x-mrim-auth-req", 27)) { // Content-Type: application/x-mrim-auth-req
- plpsText = CMStringA(lpszBody, dwBodySize);
+ plpsText = CMStringA(lpszBody, (int)dwBodySize);
return NO_ERROR;
}
|