diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-14 21:00:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-14 21:00:35 +0300 |
commit | e90d73641e9df9d3c181c9eddd85b59b8d81f8e6 (patch) | |
tree | bf38194b38769bc827270dfd754856324d56e1d2 /plugins/TabSRMM | |
parent | 357bb36c10405e7571f9ebd41d8e11837ebd6175 (diff) |
code cleaning
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index ca45b886fb..59b68b9bc5 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -1330,10 +1330,6 @@ void CLogWindow::LogEvents(LOGINFO *lin, bool bRedraw) streamData.bStripFormat = FALSE;
streamData.dat = &m_pDlg;
- EDITSTREAM stream = {};
- stream.pfnCallback = Srmm_LogStreamCallback;
- stream.dwCookie = (DWORD_PTR)&streamData;
-
POINT point = { 0 };
m_rtf.SendMsg(EM_GETSCROLLPOS, 0, (LPARAM)&point);
@@ -1365,8 +1361,11 @@ void CLogWindow::LogEvents(LOGINFO *lin, bool bRedraw) }
// stream in the event(s)
- streamData.lin = lin;
streamData.bRedraw = bRedraw;
+
+ EDITSTREAM stream = {};
+ stream.pfnCallback = Srmm_LogStreamCallback;
+ stream.dwCookie = (DWORD_PTR)&streamData;
m_rtf.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// for new added events, only replace in message or action events.
|