From e8ba1e78e72f3f7ec2841f55fd90253b4dc414df Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 목, 14 10월 2021 14:15:04 +0900 Subject: [PATCH] Ongoing60 #3671 CF AOI Review 전설비 Align Matching 방법 개선 --- ReviewSystem/ReviewSystem/DisplayMessage.cpp | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/ReviewSystem/ReviewSystem/DisplayMessage.cpp b/ReviewSystem/ReviewSystem/DisplayMessage.cpp index 2581069..ccacf49 100644 --- a/ReviewSystem/ReviewSystem/DisplayMessage.cpp +++ b/ReviewSystem/ReviewSystem/DisplayMessage.cpp @@ -78,13 +78,20 @@ { va_list list; TCHAR strText[2000] = {0}; + try + { + va_start(list, lpstrFormat); + _vstprintf_s(strText, lpstrFormat, list); + va_end(list); - va_start(list, lpstrFormat); - _vstprintf_s(strText, lpstrFormat, list); - va_end(list); + CString* pstrLog = new CString(strText); + PostThreadMessage(m_ThreadId, WM_DIPLAY_LOG, reinterpret_cast<WPARAM>(pstrLog), 0); + } + catch (...) + { + return; + } - CString* pstrLog = new CString(strText); - PostThreadMessage(m_ThreadId, WM_DIPLAY_LOG, reinterpret_cast<WPARAM>(pstrLog), 0); // WriteToFile(strText); // @@ -152,6 +159,7 @@ case WM_DIPLAY_LOG: g_pLog->ThreadDisplayMessage(*pstrLog); + delete pstrLog; break; default: -- Gitblit v1.9.3