summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_srmm.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-04 16:02:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-04 16:02:56 +0300
commite230d5b323f08f9bf07cfd4822f22a22c22660b7 (patch)
treeab84396539f13100ba119cbc5b2575b374c8f503 /plugins/MirLua/src/m_srmm.cpp
parent8937c49faab219b51b9863847406a21945d3a9cb (diff)
fix for adding separators into SRMM toolbar
Diffstat (limited to 'plugins/MirLua/src/m_srmm.cpp')
-rw-r--r--plugins/MirLua/src/m_srmm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_srmm.cpp b/plugins/MirLua/src/m_srmm.cpp
index 9a98755380..8ec739bd27 100644
--- a/plugins/MirLua/src/m_srmm.cpp
+++ b/plugins/MirLua/src/m_srmm.cpp
@@ -48,10 +48,10 @@ static int lua_AddButton(lua_State *L)
MakeBBButton(L, bbb);
int hScriptLangpack = CMLuaEnvironment::GetEnvironmentId(L);
- INT_PTR res = Srmm_AddButton(&bbb, hScriptLangpack);
+ HANDLE res = Srmm_AddButton(&bbb, hScriptLangpack);
CleanBBButton(bbb);
- if (res)
+ if (!res)
{
lua_pushnil(L);
return 1;