summaryrefslogtreecommitdiff
path: root/protocols/MRA/src/MraProto.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/src/MraProto.h')
-rw-r--r--protocols/MRA/src/MraProto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/MRA/src/MraProto.h b/protocols/MRA/src/MraProto.h
index 236f6fca80..1a4f5a6a06 100644
--- a/protocols/MRA/src/MraProto.h
+++ b/protocols/MRA/src/MraProto.h
@@ -101,7 +101,8 @@ struct CMraProto : public PROTO<CMraProto>
return DB_SetStringExW(Contact, m_szModuleName, valueName, parValue); }
__forceinline bool mraWriteContactSettingBlob(MCONTACT hContact, const char *lpszValueName, LPVOID lpbValue, size_t dwValueSize) {
- return db_set_blob(hContact, m_szModuleName, lpszValueName, lpbValue, dwValueSize) != 0; }
+ return db_set_blob(hContact, m_szModuleName, lpszValueName, lpbValue, (unsigned int)dwValueSize) != 0;
+ }
__forceinline bool mraGetContactSettingBlob(MCONTACT hContact, const char *lpszValueName, LPVOID lpbRet, size_t dwRetBuffSize, size_t *pdwRetBuffSize) {
return DB_GetContactSettingBlob(hContact, m_szModuleName, lpszValueName, lpbRet, dwRetBuffSize, pdwRetBuffSize); }