From 1e49d6b2cb3812d8e80051cbb3d44891e6532825 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 28 Mar 2017 14:55:06 +0300 Subject: funny, but without cbSize we have no need in MessageWindowInputData at all --- plugins/MirLua/src/m_message.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/m_message.cpp b/plugins/MirLua/src/m_message.cpp index f9782b1945..c21d71335c 100644 --- a/plugins/MirLua/src/m_message.cpp +++ b/plugins/MirLua/src/m_message.cpp @@ -5,13 +5,8 @@ static int message_Paste(lua_State *L) MCONTACT hContact = luaL_checkinteger(L, 1); ptrW text(mir_utf8decodeW(luaL_checkstring(L, 2))); - MessageWindowInputData mwid = { sizeof(MessageWindowInputData) }; - mwid.hContact = hContact; - mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH; - MessageWindowData mwd = { sizeof(MessageWindowData) }; - - INT_PTR res = CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid, (LPARAM)&mwd); + INT_PTR res = CallService(MS_MSG_GETWINDOWDATA, hContact, (LPARAM)&mwd); lua_pushinteger(L, res); if (res) return 1; -- cgit v1.2.3