diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-23 11:20:56 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-06-23 11:20:56 +0000 |
commit | bd51e58378fab4f1ac9441f17830b0d9e7624a90 (patch) | |
tree | 0e383a5a3fdb25cddb3555bf37578211cab66764 /plugins/MirLua | |
parent | a9a3ec00ede7662aa9a88fe35539547b0645c349 (diff) |
MirLua: fixed UnhookEvent
git-svn-id: http://svn.miranda-ng.org/main/trunk@17021 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 2 | ||||
-rw-r--r-- | plugins/MirLua/src/mlua_script.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index 3e62d2f032..c4b03a6f80 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -97,7 +97,7 @@ static int core_UnhookEvent(lua_State *L) int res = UnhookEvent(hEvent);
if (!res)
{
- HandleRefParam *param = (HandleRefParam*)CMLua::HookRefs.find(hEvent);
+ HandleRefParam *param = (HandleRefParam*)CMLua::HookRefs.find(&hEvent);
if (param != NULL)
{
luaL_unref(param->L, LUA_REGISTRYINDEX, param->ref);
diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h index 2abb2d215a..c466e16c20 100644 --- a/plugins/MirLua/src/mlua_script.h +++ b/plugins/MirLua/src/mlua_script.h @@ -21,7 +21,6 @@ private: TCHAR filePath[MAX_PATH];
Status status;
- static bool GetEnviroment(lua_State *L);
public:
CMLuaScript(lua_State *L, const TCHAR *path);
@@ -29,6 +28,7 @@ public: static CMLuaScript* GetScriptFromEnviroment(lua_State *L);
static int GetScriptIdFromEnviroment(lua_State *L);
+ static bool GetEnviroment(lua_State *L);
int GetId() const;
|