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/MessageState/src/messagestate.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/MessageState/src') diff --git a/plugins/MessageState/src/messagestate.cpp b/plugins/MessageState/src/messagestate.cpp index 42063a2a00..f5981729c2 100644 --- a/plugins/MessageState/src/messagestate.cpp +++ b/plugins/MessageState/src/messagestate.cpp @@ -91,11 +91,12 @@ static int OnEventFilterAdd(WPARAM hContact, LPARAM lParam) return 0; } -static int OnSrmmWindowOpened(WPARAM, LPARAM lParam) +static int OnSrmmWindowOpened(WPARAM uType, LPARAM lParam) { - auto *pEvent = (MessageWindowEventData*)lParam; - if (pEvent->uType == MSG_WINDOW_EVT_OPENING) - IconsUpdate(pEvent->hContact); + auto *pDlg = (CSrmmBaseDialog *)lParam; + + if (uType == MSG_WINDOW_EVT_OPENING) + IconsUpdate(pDlg->m_hContact); return 0; } -- cgit v1.2.3