summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src
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/MirandaG15/src
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/MirandaG15/src')
-rw-r--r--plugins/MirandaG15/src/CAppletManager.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp
index 446bccb3bc..c3d47bbb48 100644
--- a/plugins/MirandaG15/src/CAppletManager.cpp
+++ b/plugins/MirandaG15/src/CAppletManager.cpp
@@ -1319,17 +1319,16 @@ int CAppletManager::HookChatInbound(WPARAM, LPARAM lParam)
//************************************************************************
// message window event hook function
//************************************************************************
-int CAppletManager::HookMessageWindowEvent(WPARAM, LPARAM lParam)
+int CAppletManager::HookMessageWindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *mwed = (MessageWindowEventData*)lParam;
- CEvent Event;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+ CEvent Event;
Event.eType = EVENT_MESSAGEWINDOW;
- Event.hContact = mwed->hContact;
- Event.iValue = mwed->uType;
+ Event.hContact = pDlg->m_hContact;
+ Event.iValue = uType;
CAppletManager::GetInstance()->HandleEvent(&Event);
-
return 0;
}