From 8a74e7495ce5ad39de4f5c25121a84d35df90c36 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 15:08:48 +0300 Subject: CMPlugin to receive a reference to PLUGININFOEX --- plugins/MirLua/src/m_icolib.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua/src/m_icolib.cpp') diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp index 332d5273c5..a83c9877d7 100644 --- a/plugins/MirLua/src/m_icolib.cpp +++ b/plugins/MirLua/src/m_icolib.cpp @@ -18,7 +18,7 @@ static void MakeSKINICONDESC(lua_State *L, SKINICONDESC &sid) lua_pop(L, 1); lua_getfield(L, -1, "Section"); - sid.section.w = mir_utf8decodeW(luaL_optstring(L, 3, MODULE)); + sid.section.w = mir_utf8decodeW(luaL_optstring(L, 3, MODULENAME)); lua_pop(L, 1); lua_getfield(L, -1, "DefaultFile"); @@ -57,7 +57,7 @@ static int lua_AddIcon(lua_State *L) sid.flags = SIDF_ALL_UNICODE; sid.pszName = mir_utf8decodeA(luaL_checkstring(L, 1)); sid.description.w = mir_utf8decodeW(luaL_checkstring(L, 2)); - sid.section.w = mir_utf8decodeW(luaL_optstring(L, 3, MODULE)); + sid.section.w = mir_utf8decodeW(luaL_optstring(L, 3, MODULENAME)); sid.defaultFile.w = mir_utf8decodeW(lua_tostring(L, 4)); sid.hDefaultIcon = GetIcon(IDI_SCRIPT); -- cgit v1.2.3