diff options
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index b4d42521c6..9c549b6022 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -50,7 +50,8 @@ static int genmenu_ModifyMenuItem(lua_State *L) flags |= CMIF_UNICODE;
INT_PTR res = Menu_ModifyItem(hMenuItem, name, hIcolibItem, flags);
- lua_pushinteger(L, res);
+ lua_pushboolean(L, res == 0);
+
return 1;
}
@@ -63,7 +64,7 @@ static int genmenu_ConfigureMenuItem(lua_State *L) INT_PTR value = (INT_PTR)lua_touserdata(L, 3);
int res = Menu_ConfigureItem(hMenuItem, option, value);
- lua_pushinteger(L, res);
+ lua_pushboolean(L, res >= 0);
return 1;
}
|