*** empty log message ***
[asdcplib.git] / src / KM_log.cpp
index ae152b0a5b64d49c6a2a8db947d620a17b4af074..ca8208fd203d85080ce47a68be74c6e03bb5f5d7 100755 (executable)
@@ -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