summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_icolib.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-12-14 20:37:32 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-12-14 20:37:32 +0000
commit2b962e1ce27336c7ce3a028a8b5f58f8b3a79e78 (patch)
tree40c53728ed43985b4a76131e881d1f9536b6bd95 /plugins/MirLua/src/m_icolib.cpp
parent31df706da55782980a13328303da309bd4c38ad5 (diff)
MirLua: minor fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15863 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_icolib.cpp')
-rw-r--r--plugins/MirLua/src/m_icolib.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp
index 5b2a5b23a3..733fab90e0 100644
--- a/plugins/MirLua/src/m_icolib.cpp
+++ b/plugins/MirLua/src/m_icolib.cpp
@@ -35,18 +35,12 @@ static int lua_GetIcon(lua_State *L)
static int lua_RemoveIcon(lua_State *L)
{
- INT_PTR res = 0;
-
if (lua_isuserdata(L, 1))
::IcoLib_RemoveIconByHandle(lua_touserdata(L, 1));
else if (lua_isstring(L, 1))
::IcoLib_RemoveIcon(luaL_checkstring(L, 1));
- else
- res = 1;
- lua_pushinteger(L, res);
-
- return 1;
+ return 0;
}
static luaL_Reg icolibApi[] =