summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r--plugins/MirLua/src/Modules/m_core.cpp8
-rw-r--r--plugins/MirLua/src/environment.cpp8
2 files changed, 8 insertions, 8 deletions
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);
diff --git a/plugins/MirLua/src/environment.cpp b/plugins/MirLua/src/environment.cpp
index 24dea9ec58..e0b3ed5344 100644
--- a/plugins/MirLua/src/environment.cpp
+++ b/plugins/MirLua/src/environment.cpp
@@ -58,12 +58,12 @@ static int HookEventEnvParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM par
lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref);
if (wParam)
- lua_pushlightuserdata(env->L, (void*)wParam);
+ lua_pushinteger(env->L, wParam);
else
lua_pushnil(env->L);
if (lParam)
- lua_pushlightuserdata(env->L, (void*)lParam);
+ lua_pushinteger(env->L, lParam);
else
lua_pushnil(env->L);
@@ -98,8 +98,8 @@ static INT_PTR CreateServiceFunctionEnvParam(void *obj, WPARAM wParam, LPARAM lP
int ref = param;
lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref);
- lua_pushlightuserdata(env->L, (void*)wParam);
- lua_pushlightuserdata(env->L, (void*)lParam);
+ lua_pushinteger(env->L, wParam);
+ lua_pushinteger(env->L, lParam);
luaM_pcall(env->L, 2, 1);
INT_PTR res = lua_tointeger(env->L, 1);