diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-21 20:38:33 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-21 20:38:33 +0000 |
commit | 932f5569c467683d3b95c45772da903d3117dc11 (patch) | |
tree | 73162154b5cbfc1b2826f58015dba8720732e9b5 /plugins/MirLua/src/m_core.cpp | |
parent | 28e58637ba0b6194a2c95adf35f7581d5481a441 (diff) |
MirLua: some changes
git-svn-id: http://svn.miranda-ng.org/main/trunk@14311 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_core.cpp')
-rw-r--r-- | plugins/MirLua/src/m_core.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_core.cpp b/plugins/MirLua/src/m_core.cpp index 72d899e5b9..917694e9e7 100644 --- a/plugins/MirLua/src/m_core.cpp +++ b/plugins/MirLua/src/m_core.cpp @@ -23,8 +23,8 @@ static int lua_DestroyHookableEvent(lua_State *L) static int lua_NotifyEventHooks(lua_State *L)
{
HANDLE hEvent = (HANDLE)lua_touserdata(L, 1);
- WPARAM wParam = CMLua::GetWParam(L, 2);
- LPARAM lParam = CMLua::GetLParam(L, 3);
+ WPARAM wParam = luaM_towparam(L, 2);
+ LPARAM lParam = luaM_tolparam(L, 3);
int res = ::NotifyEventHooks(hEvent, wParam, lParam);
lua_pushinteger(L, res);
@@ -156,8 +156,8 @@ static int lua_ServiceExists(lua_State *L) static int lua_CallService(lua_State *L)
{
const char *name = luaL_checkstring(L, 1);
- WPARAM wParam = CMLua::GetWParam(L, 2);
- LPARAM lParam = CMLua::GetLParam(L, 3);
+ WPARAM wParam = luaM_towparam(L, 2);
+ LPARAM lParam = luaM_tolparam(L, 3);
INT_PTR res = ::CallService(name, wParam, lParam);
lua_pushinteger(L, res);
|