diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-18 20:17:38 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-10-18 20:17:38 +0300 |
commit | 64624c111e4a8a3a156190a8d6d3ee4d2e528f39 (patch) | |
tree | 87de4fd3fc2f028a1da9532037328446ea07a3cc /messages.cpp | |
parent | bd1b6d4572236472864378238968b3c4cb02afa0 (diff) |
utf workaround
Diffstat (limited to 'messages.cpp')
-rw-r--r-- | messages.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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); |