summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_icolib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_icolib.cpp')
-rw-r--r--plugins/MirLua/src/m_icolib.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_icolib.cpp b/plugins/MirLua/src/m_icolib.cpp
index 171ed373ab..f94959268b 100644
--- a/plugins/MirLua/src/m_icolib.cpp
+++ b/plugins/MirLua/src/m_icolib.cpp
@@ -3,17 +3,17 @@
static int lua_AddIcon(lua_State *L)
{
const char* name = luaL_checkstring(L, 1);
- const char* description = luaL_checkstring(L, 2);
- const char* section = luaL_optstring(L, 3, MODULE);
+ ptrT description(mir_utf8decodeT(luaL_checkstring(L, 2)));
+ ptrT section(mir_utf8decodeT(luaL_optstring(L, 3, MODULE)));
TCHAR filePath[MAX_PATH];
GetModuleFileName(g_hInstance, filePath, _countof(filePath));
SKINICONDESC si = { 0 };
si.flags = SIDF_ALL_TCHAR;
- si.pszName = ptrA(mir_utf8decodeA(name));
- si.description.t = ptrT(mir_utf8decodeT(description));
- si.section.t = ptrT(mir_utf8decodeT(section));
+ si.pszName = mir_utf8decodeA(name);
+ si.description.t = description;
+ si.section.t = section;
si.defaultFile.t = filePath;
si.iDefaultIndex = -IDI_ICON;