From 7f5b2d67d2ea99cbc986f58e57f609fae1aee1f7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Nov 2019 21:04:23 +0300 Subject: MirLua: since we use 64-bit integers, no need to push wparam/lparam as pointers --- plugins/MirLua/src/Modules/m_core.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/MirLua/src/Modules') diff --git a/plugins/MirLua/src/Modules/m_core.cpp b/plugins/MirLua/src/Modules/m_core.cpp index 1a250ffccf..90f022a9dc 100644 --- a/plugins/MirLua/src/Modules/m_core.cpp +++ b/plugins/MirLua/src/Modules/m_core.cpp @@ -21,12 +21,12 @@ static int HookEventLuaParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM par lua_rawgeti(L, LUA_REGISTRYINDEX, ref); if (wParam) - lua_pushlightuserdata(L, (void*)wParam); + lua_pushinteger(L, wParam); else lua_pushnil(L); if (lParam) - lua_pushlightuserdata(L, (void*)lParam); + lua_pushinteger(L, lParam); else lua_pushnil(L); @@ -122,8 +122,8 @@ INT_PTR CreateServiceFunctionLuaStateParam(void *obj, WPARAM wParam, LPARAM lPar int ref = param; lua_rawgeti(L, LUA_REGISTRYINDEX, ref); - lua_pushlightuserdata(L, (void*)wParam); - lua_pushlightuserdata(L, (void*)lParam); + lua_pushinteger(L, wParam); + lua_pushinteger(L, lParam); luaM_pcall(L, 2, 1); INT_PTR res = lua_tointeger(L, 1); -- cgit v1.2.3