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/SecureIM/src/svcs_srmm.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/SecureIM/src') diff --git a/plugins/SecureIM/src/svcs_srmm.cpp b/plugins/SecureIM/src/svcs_srmm.cpp index 09323c5cd4..e0e3ccbef6 100644 --- a/plugins/SecureIM/src/svcs_srmm.cpp +++ b/plugins/SecureIM/src/svcs_srmm.cpp @@ -1,11 +1,11 @@ #include "commonheaders.h" -int __cdecl onWindowEvent(WPARAM, LPARAM lParam) +int __cdecl onWindowEvent(WPARAM uType, LPARAM lParam) { - MessageWindowEventData *mwd = (MessageWindowEventData *)lParam; - if (mwd->uType == MSG_WINDOW_EVT_OPEN || mwd->uType == MSG_WINDOW_EVT_OPENING) - ShowStatusIcon(mwd->hContact); + auto *pDlg = (CSrmmBaseDialog *)lParam; + if (uType == MSG_WINDOW_EVT_OPEN || uType == MSG_WINDOW_EVT_OPENING) + ShowStatusIcon(pDlg->m_hContact); return 0; } -- cgit v1.2.3