*** empty log message ***
authorjhurst <jhurst@cinecert.com>
Sat, 5 Mar 2011 19:15:02 +0000 (19:15 +0000)
committerjhurst <>
Sat, 5 Mar 2011 19:15:02 +0000 (19:15 +0000)
src/KM_log.cpp
src/KM_log.h

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
index 09897060386752eb98e12e6190ff77be5f230f06..b9eab31691b82b75f5a99f6c405a1d7ac802ba52 100755 (executable)
@@ -40,6 +40,9 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <errno.h>
 #include <iosfwd>
 
+#include <atlbase.h>
+#include <atlcom.h>
+
 #define LOG_MSG_IMPL(t) \
   va_list args; \
   va_start(args, fmt); \