From 8a555ee9376773d6426850b1029935a3a48192e5 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 24 Jun 2016 08:56:06 +0000 Subject: MirLua: fix(?) crash git-svn-id: http://svn.miranda-ng.org/main/trunk@17027 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src') 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); -- cgit v1.2.3