summaryrefslogtreecommitdiff
path: root/protocols/Sametime
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Sametime')
-rw-r--r--protocols/Sametime/src/sametime.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Sametime/src/sametime.cpp b/protocols/Sametime/src/sametime.cpp
index e11388ca86..238f559d6b 100644
--- a/protocols/Sametime/src/sametime.cpp
+++ b/protocols/Sametime/src/sametime.cpp
@@ -99,15 +99,15 @@ void __cdecl sttRecvAwayThread(TFakeAckParams *tParam)
free(tParam);
}
-int CSametimeProto::OnWindowEvent(WPARAM, LPARAM lParam)
+int CSametimeProto::OnWindowEvent(WPARAM uType, LPARAM lParam)
{
- MessageWindowEventData *mwed = (MessageWindowEventData*)lParam;
+ auto *pDlg = (CSrmmBaseDialog *)lParam;
- if ((mwed == nullptr) || Contact::IsGroupChat(mwed->hContact, m_szModuleName))
+ if (Contact::IsGroupChat(pDlg->m_hContact, m_szModuleName))
return 0;
- if ((mwed->uType == MSG_WINDOW_EVT_CLOSING) || (mwed->uType == MSG_WINDOW_EVT_CLOSE))
- CloseIm(mwed->hContact);
+ if (uType == MSG_WINDOW_EVT_CLOSING || uType == MSG_WINDOW_EVT_CLOSE)
+ CloseIm(pDlg->m_hContact);
return 0;
}