diff options
-rw-r--r-- | protocols/MSN/msn_commands.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/protocols/MSN/msn_commands.cpp b/protocols/MSN/msn_commands.cpp index b83def22d2..76dab93234 100644 --- a/protocols/MSN/msn_commands.cpp +++ b/protocols/MSN/msn_commands.cpp @@ -836,11 +836,12 @@ void CMsnProto::sttProcessStatusMessage(char* buf, unsigned len, const char* wli stripColorCode((char*)szStatMsg);
DBWriteContactSettingStringUtf(hContact, "CList", "StatusMsg", szStatMsg);
}
- else
- DBDeleteContactSetting(hContact, "CList", "StatusMsg");
+ else DBDeleteContactSetting(hContact, "CList", "StatusMsg");
- mir_utf8decode((char*)szStatMsg, NULL);
- SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, (LPARAM)szStatMsg);
+ {
+ mir_ptr<TCHAR> tszStatus( mir_utf8decodeT(szStatMsg));
+ SendBroadcast(hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, NULL, tszStatus);
+ }
// Process current media info
const char* szCrntMda = ezxml_txt(ezxml_child(xmli, "CurrentMedia"));
|