summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-05-31 17:39:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-05-31 17:39:01 +0000
commitb6ea3074d3f48c436fcb2cc825d274035202dec8 (patch)
tree5029ec9ea09781e4b8c82861fed528c84ee4c5dc /plugins/NewAwaySysMod
parent9f32f113a011e34338b76eef83da6f006d528e61 (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')
-rw-r--r--plugins/NewAwaySysMod/src/ReadAwayMsg.cpp5
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;