summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-10 12:31:25 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-10 12:31:25 +0000
commitdc5833c2b90da5827fac86617311ad991908a4ad (patch)
tree4cbb90984c19a0f66f913ce85d7440152936ad5e /plugins/MirLua
parentc1e35bf6676ba144b61dcc863fa8fa3c4b7eb183 (diff)
encoding fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/Modules/WinAPI/src/winapi.cpp4
1 files changed, 2 insertions, 2 deletions
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);