summaryrefslogtreecommitdiff
path: root/plugins/NoHistory
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/NoHistory
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/NoHistory')
-rw-r--r--plugins/NoHistory/src/dllmain.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/NoHistory/src/dllmain.cpp b/plugins/NoHistory/src/dllmain.cpp
index fb9a4af38f..f1cc4bf493 100644
--- a/plugins/NoHistory/src/dllmain.cpp
+++ b/plugins/NoHistory/src/dllmain.cpp
@@ -163,12 +163,12 @@ INT_PTR ServiceToggle(WPARAM hContact, LPARAM)
return 0;
}
-int WindowEvent(WPARAM, LPARAM lParam)
+int WindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *mwd = (MessageWindowEventData *)lParam;
- MCONTACT hContact = mwd->hContact;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+ MCONTACT hContact = pDlg->m_hContact;
- switch(mwd->uType) {
+ switch(uType) {
case MSG_WINDOW_EVT_CLOSE:
RemoveReadEvents(hContact);
break;