diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 17:39:01 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 17:39:01 +0000 |
commit | b6ea3074d3f48c436fcb2cc825d274035202dec8 (patch) | |
tree | 5029ec9ea09781e4b8c82861fed528c84ee4c5dc /plugins/NewAwaySysMod/src/ReadAwayMsg.cpp | |
parent | 9f32f113a011e34338b76eef83da6f006d528e61 (diff) |
NAS to write a status message correctly
git-svn-id: http://svn.miranda-ng.org/main/trunk@13941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/NewAwaySysMod/src/ReadAwayMsg.cpp')
-rw-r--r-- | plugins/NewAwaySysMod/src/ReadAwayMsg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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;
|