summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_database.h2
-rw-r--r--src/mir_core/src/db.cpp2
-rw-r--r--utils/mir_signal.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/include/m_database.h b/include/m_database.h
index 34d4b3d128..47916a2c40 100644
--- a/include/m_database.h
+++ b/include/m_database.h
@@ -396,7 +396,7 @@ EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_dw(MCONTACT hContact, const char *szModul
EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_s(MCONTACT hContact, const char *szModule, const char *szSetting, const char *val);
EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_ws(MCONTACT hContact, const char *szModule, const char *szSetting, const wchar_t *val);
EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_utf(MCONTACT hContact, const char *szModule, const char *szSetting, const char *val);
-EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const char *szSetting, void *val, unsigned len);
+EXTERN_C MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const char *szSetting, const void *val, unsigned len);
EXTERN_C MIR_CORE_DLL(INT_PTR) db_unset(MCONTACT hContact, const char *szModule, const char *szSetting);
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp
index cb95ebb286..a680211c82 100644
--- a/src/mir_core/src/db.cpp
+++ b/src/mir_core/src/db.cpp
@@ -388,7 +388,7 @@ MIR_CORE_DLL(INT_PTR) db_set_utf(MCONTACT hContact, const char *szModule, const
return g_pCurrDb->WriteContactSetting(hContact, &cws);
}
-MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const char *szSetting, void *val, unsigned len)
+MIR_CORE_DLL(INT_PTR) db_set_blob(MCONTACT hContact, const char *szModule, const char *szSetting, const void *val, unsigned len)
{
if (g_pCurrDb == nullptr) return 1;
diff --git a/utils/mir_signal.h b/utils/mir_signal.h
index 313714edac..95281e745c 100644
--- a/utils/mir_signal.h
+++ b/utils/mir_signal.h
@@ -53,6 +53,7 @@ public:
__forceinline operator bool() const { return m_buf != nullptr; }
__forceinline uint8_t* data() const { return m_buf->data; }
__forceinline unsigned len() const { return unsigned(m_buf->len); }
+ __forceinline void reset(size_t len) { m_buf->len = len; }
CMStringA toBase64() const;
};