diff options
| author | jhurst <jhurst@cinecert.com> | 2011-03-05 19:15:02 +0000 |
|---|---|---|
| committer | jhurst <> | 2011-03-05 19:15:02 +0000 |
| commit | 28996ba007bb65d908e8bf35aedcd71c906f7fee (patch) | |
| tree | 01af720d3c4f3e8b04ef267dafd75d07bd2b8fd4 /src/KM_log.cpp | |
| parent | cb3d6d3ded4b86b903fbf734b41cdee883b335d7 (diff) | |
*** empty log message ***
Diffstat (limited to 'src/KM_log.cpp')
| -rwxr-xr-x | src/KM_log.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
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 |
