summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_protocols.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-18 17:02:29 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-18 17:02:29 +0000
commit6409436d74e5831d362a4e4a102f4ed5527c4562 (patch)
tree876b696f9679a617fa64bec654cb55a9fa3ae884 /plugins/MirLua/src/m_protocols.cpp
parentcb07641dfb24d64306b3c473990622d0c653e567 (diff)
MirLua: returned some lua types support as lparam/wparam
git-svn-id: http://svn.miranda-ng.org/main/trunk@16715 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_protocols.cpp')
-rw-r--r--plugins/MirLua/src/m_protocols.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_protocols.cpp b/plugins/MirLua/src/m_protocols.cpp
index 5e30c1dad4..b7d861480f 100644
--- a/plugins/MirLua/src/m_protocols.cpp
+++ b/plugins/MirLua/src/m_protocols.cpp
@@ -61,8 +61,8 @@ static int lua_CallService(lua_State *L)
{
const char *module = luaL_checkstring(L, 1);
const char *service = luaL_checkstring(L, 2);
- WPARAM wParam = luaM_towparam(L, 3);
- LPARAM lParam = luaM_tolparam(L, 4);
+ WPARAM wParam = (WPARAM)luaM_tomparam(L, 3);
+ LPARAM lParam = (LPARAM)luaM_tomparam(L, 4);
INT_PTR res = CallProtoService(module, service, wParam, lParam);
lua_pushinteger(L, res);