From 1789d473b341d4e7362c0a08ffc3d4624e61f773 Mon Sep 17 00:00:00 2001 From: sje Date: Wed, 29 Nov 2006 09:47:07 +0000 Subject: TioDuke patches again - thanks (fix corrupted status message, and 'flickering') git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@67 4f64403b-2f21-0410-a795-97e2b3489a10 --- tipper/message_pump.cpp | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'tipper/message_pump.cpp') diff --git a/tipper/message_pump.cpp b/tipper/message_pump.cpp index 66013b7..01f172e 100644 --- a/tipper/message_pump.cpp +++ b/tipper/message_pump.cpp @@ -160,24 +160,8 @@ int HideTip(WPARAM wParam, LPARAM lParam) { int ProtoAck(WPARAM wParam, LPARAM lParam) { ACKDATA *ack = (ACKDATA *)lParam; char *szMsg = (char *)ack->lParam; - if(ack->type == ACKTYPE_AWAYMSG && ack->result == ACKRESULT_SUCCESS && szMsg) { - /* - int size = MultiByteToWideChar(code_page, 0, szMsg, -1, 0, 0); - if(size > 1) { - wchar_t *msg = (wchar_t *)malloc(size * sizeof(wchar_t)); - MultiByteToWideChar(code_page, 0, (char *) szMsg, -1, msg, size); - PostMPMessage(MUM_GOTSTATUS, (WPARAM)ack->hContact, (LPARAM)msg); - } - */ - /* - int size = MultiByteToWideChar(CP_UTF8, 0, szMsg, -1, 0, 0); - if(size > 1) { - wchar_t *msg = (wchar_t *)malloc(size * sizeof(wchar_t)); - MultiByteToWideChar(CP_UTF8, 0, (char *) szMsg, -1, msg, size); - PostMPMessage(MUM_GOTSTATUS, (WPARAM)ack->hContact, (LPARAM)msg); - } - */ - PostMPMessage(MUM_GOTSTATUS, (WPARAM)ack->hContact, (LPARAM)u2t(szMsg)); + if(ack->type == ACKTYPE_AWAYMSG && ack->result == ACKRESULT_SUCCESS && szMsg && szMsg[0]) { + PostMPMessage(MUM_GOTSTATUS, (WPARAM)ack->hContact, (LPARAM)a2t(szMsg)); } return 0; } -- cgit v1.2.3