From e90d73641e9df9d3c181c9eddd85b59b8d81f8e6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 14 Apr 2023 21:00:35 +0300 Subject: code cleaning --- plugins/TabSRMM/src/msglog.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/TabSRMM') 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. -- cgit v1.2.3