summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-11 08:03:36 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-11 08:03:36 +0000
commit8f5721964ac7ee042e04776c722e459490061204 (patch)
tree0c936caa3cb1c851d512c7daa451e4b876420add /plugins/MirLua/src/m_core.cpp
parenta15cfbf2d3abc5a66b394e2da551828d39994d51 (diff)
MirLua:
- added ability to create submenu - fixed event hook for parameterless function git-svn-id: http://svn.miranda-ng.org/main/trunk@14112 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r--plugins/MirLua/src/m_core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp
index 21cd25ce80..99166d3236 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -23,8 +23,8 @@ static int lua_DestroyHookableEvent(lua_State *L)
static int lua_NotifyEventHooks(lua_State *L)
{
HANDLE hEvent = (HANDLE)lua_touserdata(L, 1);
- WPARAM wParam = (WPARAM)luaL_checkinteger(L, 2);
- LPARAM lParam = (LPARAM)luaL_checkinteger(L, 3);
+ WPARAM wParam = (WPARAM)lua_tointeger(L, 2);
+ LPARAM lParam = (LPARAM)lua_tointeger(L, 3);
int res = ::NotifyEventHooks(hEvent, wParam, lParam);
lua_pushinteger(L, res);