summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/svcs_srmm.cpp
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/SecureIM/src/svcs_srmm.cpp
parent6024e32d70da7a7c703de51e30b6c6407df8a745 (diff)
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/SecureIM/src/svcs_srmm.cpp')
-rw-r--r--plugins/SecureIM/src/svcs_srmm.cpp8
1 files changed, 4 insertions, 4 deletions
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;
}