summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-07-09 15:48:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-07-09 15:48:50 +0000
commit9a3cef7fd1214ad30629f5049002971ce73f8ddf (patch)
tree838a96d8d0ec0505304495db6defe4ba7d4c5504 /plugins/MirLua
parent6f7232fc9830161c2a2b2eee1adba92fd4108193 (diff)
MirLua: oops. added forgotten arg
git-svn-id: http://svn.miranda-ng.org/main/trunk@14518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/m_windows.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_windows.cpp b/plugins/MirLua/src/m_windows.cpp
index 6277d5a82b..e42c9ece7b 100644
--- a/plugins/MirLua/src/m_windows.cpp
+++ b/plugins/MirLua/src/m_windows.cpp
@@ -2,11 +2,12 @@
static int lua_MessageBox(lua_State *L)
{
- ptrT text(mir_utf8decodeT(lua_tostring(L, 1)));
- ptrT caption(mir_utf8decodeT(lua_tostring(L, 2)));
- UINT flags = lua_tointeger(L, 3);
+ HWND hwnd = (HWND)lua_touserdata(L, 1);
+ ptrT text(mir_utf8decodeT(lua_tostring(L, 2)));
+ ptrT caption(mir_utf8decodeT(lua_tostring(L, 3)));
+ UINT flags = lua_tointeger(L, 4);
- int res = ::MessageBox(NULL, text, caption, flags);
+ int res = ::MessageBox(hwnd, text, caption, flags);
lua_pushinteger(L, res);
return 1;