diff options
author | George Hazan <ghazan@miranda.im> | 2020-10-16 14:30:13 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-10-16 14:30:13 +0300 |
commit | 4bb9749b21edbe9d97ea16a440501f51d5be036c (patch) | |
tree | 3812bf41208c04b3ba2761fbde0c46d27a1dbae8 /plugins/MirLua/src/environment.cpp | |
parent | cab7806ebaf3a570d995c128a08d5defc527db14 (diff) |
MirLua:
- fixes #2589 (MirLua doesn't work correctly in 64-bit Miranda);
- code cleaning;
- version bump
Diffstat (limited to 'plugins/MirLua/src/environment.cpp')
-rw-r--r-- | plugins/MirLua/src/environment.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/environment.cpp b/plugins/MirLua/src/environment.cpp index e0b3ed5344..2c34af11bd 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_pushinteger(env->L, wParam); + lua_pushlightuserdata(env->L, (void*)wParam); else lua_pushnil(env->L); if (lParam) - lua_pushinteger(env->L, lParam); + lua_pushlightuserdata(env->L, (void *)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_pushinteger(env->L, wParam); - lua_pushinteger(env->L, lParam); + lua_pushlightuserdata(env->L, (void *)wParam); + lua_pushlightuserdata(env->L, (void *)lParam); luaM_pcall(env->L, 2, 1); INT_PTR res = lua_tointeger(env->L, 1); |