diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 08:09:44 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 08:09:44 +0000 |
commit | 9c8b58a6166b681c587f59358b04efcd569b11db (patch) | |
tree | 30373fda7efaf73b89339029372bd19efa087512 /plugins/MirLua/src/m_genmenu.cpp | |
parent | 580c7f7fbcb7e9365fcbed87fc751e8e9d155cc2 (diff) |
MirLua: fixed some memory leaks
git-svn-id: http://svn.miranda-ng.org/main/trunk@14449 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 7b8df35cd0..76b54649e9 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -96,6 +96,9 @@ static int lua_ModifyMenuItem(lua_State *L) HANDLE hIcolibItem = lua_touserdata(L, 3);
int flags = lua_tointeger(L, 4);
+ if (!(flags & CMIF_UNICODE))
+ flags |= CMIF_UNICODE;
+
INT_PTR res = ::Menu_ModifyItem(hMenuItem, name, hIcolibItem, flags);
lua_pushinteger(L, res);
return 1;
|