diff options
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); |