From c9b740a178828eae5cc4be7ab054e5f26d3a27e7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 21 Sep 2023 14:34:07 +0300 Subject: MessageWindowEventData: useless structure removed --- plugins/NoHistory/src/dllmain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/NoHistory') 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; -- cgit v1.2.3