summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/m_core.cpp4
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp2
2 files changed, 4 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);
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index 5a185f64bd..064758da2e 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -8,6 +8,7 @@ static int lua_AddMainMenuItem(lua_State *L)
mi.position = lua_tointeger(L, 3);
mi.icolibItem = (HANDLE)lua_touserdata(L, 4);
mi.pszService = (char*)lua_tostring(L, 5);
+ mi.hParentMenu = (HGENMENU)lua_touserdata(L, 6);
HGENMENU res = ::Menu_AddMainMenuItem(&mi);
lua_pushlightuserdata(L, res);
@@ -23,6 +24,7 @@ static int lua_AddContactMenuItem(lua_State *L)
mi.position = lua_tointeger(L, 3);
mi.icolibItem = (HANDLE)lua_touserdata(L, 4);
mi.pszService = (char*)lua_tostring(L, 5);
+ mi.hParentMenu = (HGENMENU)lua_touserdata(L, 6);
HGENMENU res = ::Menu_AddContactMenuItem(&mi);
lua_pushlightuserdata(L, res);