From dc5833c2b90da5827fac86617311ad991908a4ad Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Sun, 10 Jan 2016 12:31:25 +0000 Subject: encoding fix git-svn-id: http://svn.miranda-ng.org/main/trunk@16076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/Modules/WinAPI/src/winapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/MirLua') diff --git a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp index a284fda519..c964dc9380 100644 --- a/plugins/MirLua/Modules/WinAPI/src/winapi.cpp +++ b/plugins/MirLua/Modules/WinAPI/src/winapi.cpp @@ -26,8 +26,8 @@ int MessageBoxTimeoutA(HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType, W static int lua_MessageBox(lua_State *L) { HWND hwnd = (HWND)lua_touserdata(L, 1); - const char *text = lua_tostring(L, 2); - const char *caption = lua_tostring(L, 3); + ptrA text(mir_utf8decodeA(lua_tostring(L, 2))); + ptrA caption(mir_utf8decodeA(lua_tostring(L, 3))); UINT flags = lua_tointeger(L, 4); LANGID langId = GetUserDefaultUILanguage(); DWORD timeout = luaL_optinteger(L, 5, 0xFFFFFFFF); -- cgit v1.2.3