summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_genmenu.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-28 22:07:01 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-28 22:07:01 +0000
commit6dc86e6320348e4cef1deeaccaa30e7bd8d70447 (patch)
tree4ebbcd97fe25766223399fb6d2f96369be83b3cc /plugins/MirLua/src/m_genmenu.cpp
parenta68d05a5501a4e2d03205352a07de6e10d9313c3 (diff)
MirLua:
- fixed menu item duplication ! broken compatibility for ModifyMenuItem in m_genmenu git-svn-id: http://svn.miranda-ng.org/main/trunk@14436 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index eabc1cef71..f2839d9a82 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -51,7 +51,7 @@ static int lua_AddMainMenuItem(lua_State *L)
mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddMainMenuItem(pmi);
+ HGENMENU res = ::Menu_AddMainMenuItem(pmi, hScriptsLangpack);
lua_pushlightuserdata(L, res);
return 1;
@@ -67,7 +67,7 @@ static int lua_AddContactMenuItem(lua_State *L)
mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddContactMenuItem(pmi);
+ HGENMENU res = ::Menu_AddContactMenuItem(pmi, NULL, hScriptsLangpack);
lua_pushlightuserdata(L, res);
return 1;
@@ -96,8 +96,6 @@ static int lua_ModifyMenuItem(lua_State *L)
HANDLE hIcolibItem = lua_touserdata(L, 3);
int flags = lua_tointeger(L, 4);
- mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
-
INT_PTR res = ::Menu_ModifyItem(hMenuItem, name, hIcolibItem, flags);
lua_pushinteger(L, res);
return 1;