summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-21 14:34:07 +0300
commitc9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch)
treee15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/UserInfoEx
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/Flags/svc_flags.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/Flags/svc_flags.cpp b/plugins/UserInfoEx/src/Flags/svc_flags.cpp
index 590a95d6a3..193020cb32 100644
--- a/plugins/UserInfoEx/src/Flags/svc_flags.cpp
+++ b/plugins/UserInfoEx/src/Flags/svc_flags.cpp
@@ -113,25 +113,26 @@ void UpdateStatusIcons()
}
//hookProc ME_MSG_WINDOWEVENT
-static int OnMsgWndEvent(WPARAM, LPARAM lParam)
+static int OnMsgWndEvent(WPARAM uType, LPARAM lParam)
{
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+
MsgWndData *msgwnd;
- MessageWindowEventData *msgwe = (MessageWindowEventData*)lParam;
/* sanity check */
- if (msgwe->hContact == NULL)
+ if (pDlg->m_hContact == NULL)
return 0;
- switch (msgwe->uType) {
+ switch (uType) {
case MSG_WINDOW_EVT_OPENING:
- msgwnd = gMsgWndList.find((MsgWndData*)&msgwe->hContact);
+ msgwnd = gMsgWndList.find((MsgWndData*)&pDlg->m_hContact);
if (msgwnd == nullptr) {
- msgwnd = new MsgWndData(msgwe->hwndWindow, msgwe->hContact);
+ msgwnd = new MsgWndData(pDlg->GetHwnd(), pDlg->m_hContact);
gMsgWndList.insert(msgwnd);
}
break;
case MSG_WINDOW_EVT_CLOSE:
- int i = gMsgWndList.getIndex((MsgWndData*)&msgwe->hContact);
+ int i = gMsgWndList.getIndex((MsgWndData*)&pDlg->m_hContact);
if (i != -1) {
delete gMsgWndList[i];
gMsgWndList.remove(i);