From 28996ba007bb65d908e8bf35aedcd71c906f7fee Mon Sep 17 00:00:00 2001 From: jhurst Date: Sat, 5 Mar 2011 19:15:02 +0000 Subject: *** empty log message *** --- src/KM_log.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/KM_log.cpp') diff --git a/src/KM_log.cpp b/src/KM_log.cpp index ae152b0..ca8208f 100755 --- a/src/KM_log.cpp +++ b/src/KM_log.cpp @@ -126,21 +126,8 @@ Kumu::WinDbgLogSink::WriteEntry(const LogEntry& Entry) if ( Entry.TestFilter(m_filter) ) { - Entry.CreateStringWithOptions(buf, m_options); - int lenW = ::MultiByteToWideChar(CP_ACP, 0, buf.c_str(), buf.size(), 0, 0); - if ( lenW > 0 ) - { - // Check whether conversion was successful - BSTR unicodestr = ::SysAllocStringLen(0, lenW); - ::MultiByteToWideChar(CP_ACP, 0, buf.c_str(), buf.size(), unicodestr, lenW); - ::OutputDebugString(unicodestr); - ::SysFreeString(unicodestr); - } - else - { - ::OutputDebugString(L("MultiByteToWideChar failed, log sink output discarded.\n")); - } + ::OutputDebugStringA(buf.c_str()); } } #endif -- cgit v1.2.3