summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp9
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.