From b6ea3074d3f48c436fcb2cc825d274035202dec8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 May 2015 17:39:01 +0000 Subject: NAS to write a status message correctly git-svn-id: http://svn.miranda-ng.org/main/trunk@13941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewAwaySysMod/src/ReadAwayMsg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp b/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp index 8a49dcf6ef..f394c9bdda 100644 --- a/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp +++ b/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp @@ -91,11 +91,12 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam UnhookEvent(awayData->hAwayMsgEvent); awayData->hAwayMsgEvent = NULL; } - SetDlgItemText(hwndDlg, IDC_READAWAYMSG_MSG, (const TCHAR*)ack->lParam); + const TCHAR *ptszStatusMsg = (const TCHAR*)ack->lParam; + SetDlgItemText(hwndDlg, IDC_READAWAYMSG_MSG, ptszStatusMsg); ShowWindow(GetDlgItem(hwndDlg, IDC_READAWAYMSG_RETRIEVE), SW_HIDE); ShowWindow(GetDlgItem(hwndDlg, IDC_READAWAYMSG_MSG), SW_SHOW); SetDlgItemText(hwndDlg, IDOK, TranslateT("&Close")); - db_set_s(awayData->hContact, "CList", "StatusMsg", (const char*)ack->lParam); + db_set_ts(awayData->hContact, "CList", "StatusMsg", ptszStatusMsg); } break; -- cgit v1.2.3