summaryrefslogtreecommitdiff
path: root/plugins/NoHistory/src/dllmain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NoHistory/src/dllmain.cpp')
-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;