From 9a3cef7fd1214ad30629f5049002971ce73f8ddf Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 9 Jul 2015 15:48:50 +0000 Subject: MirLua: oops. added forgotten arg git-svn-id: http://svn.miranda-ng.org/main/trunk@14518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_windows.cpp | 9 +++++---- 1 file 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; -- cgit v1.2.3