diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-15 21:39:26 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-15 21:39:26 +0000 |
commit | 0d551e92ff8350ce5afd3491d9fce3bd80e8c129 (patch) | |
tree | e54420f674f48eaa8094506630a5b304cbd9bbf8 | |
parent | 0d65ec3aab2c63b9a55fbabc811b0e23447fd4a1 (diff) |
MirLua: fix icon registration
git-svn-id: http://svn.miranda-ng.org/main/trunk@14578 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/MirLua/src/m_icolib.cpp | 10 |
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;
|