summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_core.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-06-24 08:56:06 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-06-24 08:56:06 +0000
commit8a555ee9376773d6426850b1029935a3a48192e5 (patch)
treefbc9dcabe1c25abdf8dc8f88e4225ba5129e7e39 /plugins/MirLua/src/m_core.cpp
parentfe4cec89d652ba57f7a47d98fb320f710b33ae98 (diff)
MirLua: fix(?) crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@17027 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 1b4bc8d390..e0a19e0a6f 100644
--- a/plugins/MirLua/src/m_core.cpp
+++ b/plugins/MirLua/src/m_core.cpp
@@ -18,7 +18,7 @@ static int core_CreateHookableEvent(lua_State *L)
int HookEventObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- lua_State *L = lua_newthread((lua_State*)obj);
+ lua_State *L = lua_newthread(*(CMLua*)obj);
int ref = param;
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);
@@ -97,7 +97,7 @@ static int core_DestroyHookableEvent(lua_State *L)
INT_PTR CreateServiceFunctionObjParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM param)
{
- lua_State *L = lua_newthread((lua_State*)obj);
+ lua_State *L = lua_newthread(*(CMLua*)obj);
int ref = param;
lua_rawgeti(L, LUA_REGISTRYINDEX, ref);