From 2f261839b60692e33d0e160344d0d636d49c90ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 14:23:31 +0000 Subject: less TCHARs git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/mlua_script.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/MirLua/src/mlua_script.cpp') diff --git a/plugins/MirLua/src/mlua_script.cpp b/plugins/MirLua/src/mlua_script.cpp index b84c3d978e..f4cfef8c7c 100644 --- a/plugins/MirLua/src/mlua_script.cpp +++ b/plugins/MirLua/src/mlua_script.cpp @@ -5,17 +5,17 @@ CMLuaScript::CMLuaScript(lua_State *L, const wchar_t *path) : L(L), status(None), unloadRef(LUA_NOREF) { - mir_tstrcpy(filePath, path); + mir_wstrcpy(filePath, path); fileName = wcsrchr(filePath, '\\') + 1; wchar_t *dot = wcsrchr(fileName, '.'); - size_t length = mir_tstrlen(fileName) - mir_tstrlen(dot) + 1; + size_t length = mir_wstrlen(fileName) - mir_wstrlen(dot) + 1; - ptrT name((wchar_t*)mir_calloc(sizeof(wchar_t) * (length + 1))); - mir_tstrncpy(name, fileName, length); + ptrW name((wchar_t*)mir_calloc(sizeof(wchar_t) * (length + 1))); + mir_wstrncpy(name, fileName, length); - moduleName = mir_utf8encodeT(name); + moduleName = mir_utf8encodeW(name); MUUID muidLast = MIID_LAST; id = GetPluginLangId(muidLast, 0); -- cgit v1.2.3