From 237d02ebbabbedfb8b33160ebfb5250bbd491eca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Nov 2014 16:44:58 +0000 Subject: and a few more git-svn-id: http://svn.miranda-ng.org/main/trunk@11174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IcqOscarJ/src/icq_db.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_db.cpp') diff --git a/protocols/IcqOscarJ/src/icq_db.cpp b/protocols/IcqOscarJ/src/icq_db.cpp index e121b6d0d8..4871d2d7b3 100644 --- a/protocols/IcqOscarJ/src/icq_db.cpp +++ b/protocols/IcqOscarJ/src/icq_db.cpp @@ -116,12 +116,12 @@ WORD CIcqProto::getContactStatus(MCONTACT hContact) return getWord(hContact, "Status", ID_STATUS_OFFLINE); } -int CIcqProto::getSettingStringStatic(MCONTACT hContact, const char *szSetting, char *dest, int dest_len) +int CIcqProto::getSettingStringStatic(MCONTACT hContact, const char *szSetting, char *dest, size_t dest_len) { - if (!db_get_static(hContact, m_szModuleName, szSetting, dest, dest_len)) + if (!db_get_static(hContact, m_szModuleName, szSetting, dest, (int)dest_len)) return 0; - return db_get_static_utf(hContact, m_szModuleName, szSetting, dest, dest_len); + return db_get_static_utf(hContact, m_szModuleName, szSetting, dest, (int)dest_len); } int CIcqProto::setSettingDouble(MCONTACT hContact, const char *szSetting, double dValue) @@ -129,9 +129,9 @@ int CIcqProto::setSettingDouble(MCONTACT hContact, const char *szSetting, double return setSettingBlob(hContact, szSetting, (BYTE*)&dValue, sizeof(double)); } -int CIcqProto::setSettingBlob(MCONTACT hContact, const char *szSetting, const BYTE *pValue, const int cbValue) +int CIcqProto::setSettingBlob(MCONTACT hContact, const char *szSetting, const BYTE *pValue, size_t cbValue) { - return db_set_blob(hContact, m_szModuleName, szSetting, (void*)pValue, cbValue); + return db_set_blob(hContact, m_szModuleName, szSetting, (void*)pValue, (unsigned)cbValue); } int CIcqProto::setContactHidden(MCONTACT hContact, BYTE bHidden) -- cgit v1.2.3