From 64624c111e4a8a3a156190a8d6d3ee4d2e528f39 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 18 Oct 2010 20:17:38 +0300 Subject: utf workaround --- messages.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 7e6886f..3479f7e 100644 --- a/messages.cpp +++ b/messages.cpp @@ -405,7 +405,9 @@ int SendMsgSvc(WPARAM w, LPARAM l) { //encrypt data here - wchar_t *tmp = mir_utf8decodeW(msg); + TCHAR *tmp = mir_utf8decodeW(msg); + if(!tmp) + tmp = mir_a2t(msg); wstring str = tmp; mir_free(tmp); { //not xmpp, just replace whole message @@ -595,6 +597,8 @@ int HookSendMsg(WPARAM w, LPARAM l) { char *msg = (char*)dbei->pBlob; TCHAR *tmp = mir_utf8decodeW(msg); + if(!tmp) + tmp = mir_a2t(msg); wstring str = tmp; mir_free(tmp); str.insert(0, outopentag); -- cgit v1.2.3