summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjhurst <jhurst@cinecert.com>2011-03-05 19:15:02 +0000
committerjhurst <>2011-03-05 19:15:02 +0000
commit28996ba007bb65d908e8bf35aedcd71c906f7fee (patch)
tree01af720d3c4f3e8b04ef267dafd75d07bd2b8fd4 /src
parentcb3d6d3ded4b86b903fbf734b41cdee883b335d7 (diff)
*** empty log message ***
Diffstat (limited to 'src')
-rwxr-xr-xsrc/KM_log.cpp15
-rwxr-xr-xsrc/KM_log.h3
2 files changed, 4 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
diff --git a/src/KM_log.h b/src/KM_log.h
index 0989706..b9eab31 100755
--- a/src/KM_log.h
+++ b/src/KM_log.h
@@ -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); \