summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-11-29 13:25:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-11-29 13:25:28 +0300
commit6dfdffd3161a716304b74c1fc5c386c9601cc69e (patch)
treeff7f53d8b643260676bbc6e69efc563d489ed0b5 /plugins/MirLua
parent4e5cf5ee914732ae30e261f08b270f07a69630f4 (diff)
- BBBF_ISLSIDEBUTTON flag removed (set by default);
- m_bLSided removed, because it's mutually exclusive with m_bRSided
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_database.cpp4
-rw-r--r--plugins/MirLua/src/m_message.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_database.cpp b/plugins/MirLua/src/m_database.cpp
index b50f2d80a9..7a916f63d2 100644
--- a/plugins/MirLua/src/m_database.cpp
+++ b/plugins/MirLua/src/m_database.cpp
@@ -297,7 +297,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei)
switch (lua_type(L, -1))
{
case LUA_TTABLE:
- dbei.cbBlob = lua_rawlen(L, 4);
+ dbei.cbBlob = (DWORD)lua_rawlen(L, 4);
dbei.pBlob = (BYTE*)mir_calloc(dbei.cbBlob);
for (DWORD i = 0; i < dbei.cbBlob; i++)
{
@@ -309,7 +309,7 @@ void MakeDbEvent(lua_State *L, DBEVENTINFO &dbei)
case LUA_TSTRING:
size_t nLen;
const char *str = lua_tolstring(L, -1, &nLen);
- dbei.cbBlob = nLen;
+ dbei.cbBlob = (DWORD)nLen;
dbei.pBlob = (BYTE*)mir_alloc(nLen);
memcpy(dbei.pBlob, str, nLen);
break;
diff --git a/plugins/MirLua/src/m_message.cpp b/plugins/MirLua/src/m_message.cpp
index d08fad864b..cf13c1ff35 100644
--- a/plugins/MirLua/src/m_message.cpp
+++ b/plugins/MirLua/src/m_message.cpp
@@ -46,7 +46,7 @@ static int message_Send(lua_State *L)
dbei.szModule = MODULE;
dbei.timestamp = time(NULL);
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.cbBlob = mir_strlen(message);
+ dbei.cbBlob = (DWORD)mir_strlen(message);
dbei.pBlob = (PBYTE)mir_strdup(message);
dbei.flags = DBEF_UTF | DBEF_SENT;
db_event_add(hContact, &dbei);