summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging/backend.cpp')
-rw-r--r--src/common/logging/backend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp
index 5753b871a..12f6d0114 100644
--- a/src/common/logging/backend.cpp
+++ b/src/common/logging/backend.cpp
@@ -13,7 +13,7 @@
13#include <vector> 13#include <vector>
14#ifdef _WIN32 14#ifdef _WIN32
15#include <share.h> // For _SH_DENYWR 15#include <share.h> // For _SH_DENYWR
16#include <windows.h> // For OutputDebugStringA 16#include <windows.h> // For OutputDebugStringW
17#else 17#else
18#define _SH_DENYWR 0 18#define _SH_DENYWR 0
19#endif 19#endif
@@ -148,7 +148,7 @@ void FileBackend::Write(const Entry& entry) {
148 148
149void DebuggerBackend::Write(const Entry& entry) { 149void DebuggerBackend::Write(const Entry& entry) {
150#ifdef _WIN32 150#ifdef _WIN32
151 ::OutputDebugStringA(FormatLogMessage(entry).append(1, '\n').c_str()); 151 ::OutputDebugStringW(Common::UTF8ToUTF16W(FormatLogMessage(entry).append(1, '\n')).c_str());
152#endif 152#endif
153} 153}
154 154