diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-17 14:07:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-17 14:07:44 +0000 |
commit | 122baf7f7465e0b5b890729d65914f527db1ca26 (patch) | |
tree | 117f5fe7914b636a5d99577235e58727c8ddedb3 /protocols/AimOscar/server.cpp | |
parent | 5b68af4bce0056e373e69bf16fb7d3bdfac96dd8 (diff) |
Unicode ACKTYPE_AWAYMSG broadcast
git-svn-id: http://svn.miranda-ng.org/main/trunk@458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/server.cpp')
-rw-r--r-- | protocols/AimOscar/server.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/AimOscar/server.cpp b/protocols/AimOscar/server.cpp index 7cd4601dcd..800f90a882 100644 --- a/protocols/AimOscar/server.cpp +++ b/protocols/AimOscar/server.cpp @@ -547,7 +547,10 @@ void CAimProto::snac_user_online(SNAC &snac)//family 0x0003 char* msg = tlv.part(i + 6, len);
char* msg_s = process_status_msg(msg, sn);
DBWriteContactSettingStringUtf(hContact, MOD_KEY_CL, OTH_KEY_SM, msg_s);
- sendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)msg);
+
+ TCHAR* tszMsg = mir_utf8decodeT(msg_s);
+ sendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)tszMsg);
+ mir_free(tszMsg);
mir_free(msg);
mir_free(msg_s);
}
|