diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-24 08:56:06 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-24 08:56:06 +0000 |
commit | 8a555ee9376773d6426850b1029935a3a48192e5 (patch) | |
tree | fbc9dcabe1c25abdf8dc8f88e4225ba5129e7e39 /plugins/MirLua/src/m_core.cpp | |
parent | fe4cec89d652ba57f7a47d98fb320f710b33ae98 (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.cpp | 4 |
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);
|