diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-21 14:34:07 +0300 |
commit | c9b740a178828eae5cc4be7ab054e5f26d3a27e7 (patch) | |
tree | e15ce76cb41feb3375a76c95d861294b899bfe48 /plugins/New_GPG | |
parent | 6024e32d70da7a7c703de51e30b6c6407df8a745 (diff) |
MessageWindowEventData: useless structure removed
Diffstat (limited to 'plugins/New_GPG')
-rw-r--r-- | plugins/New_GPG/src/srmm.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/New_GPG/src/srmm.cpp b/plugins/New_GPG/src/srmm.cpp index ee575c4947..35bdf9ca79 100644 --- a/plugins/New_GPG/src/srmm.cpp +++ b/plugins/New_GPG/src/srmm.cpp @@ -53,12 +53,13 @@ static void ToggleIcon(MCONTACT hContact) }
}
-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)
- if (isContactHaveKey(mwd->hContact))
- setSrmmIcon(mwd->hContact);
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
+
+ if (uType == MSG_WINDOW_EVT_OPEN || uType == MSG_WINDOW_EVT_OPENING)
+ if (isContactHaveKey(pDlg->m_hContact))
+ setSrmmIcon(pDlg->m_hContact);
return 0;
}
|