summaryrefslogtreecommitdiff
path: root/src/common/logging/backend.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-12-07 18:16:10 -0500
committerGravatar GitHub2018-12-07 18:16:10 -0500
commit713fc67b5181a38f6bca977849693163a28b531b (patch)
treed2f2933706150a44310962be894f43d87023d4bf /src/common/logging/backend.cpp
parentMerge pull request #1873 from lioncash/const (diff)
parentBackport review comment from citra-emu/citra#4418 (diff)
downloadyuzu-713fc67b5181a38f6bca977849693163a28b531b.tar.gz
yuzu-713fc67b5181a38f6bca977849693163a28b531b.tar.xz
yuzu-713fc67b5181a38f6bca977849693163a28b531b.zip
Merge pull request #1882 from FearlessTobi/backport-4418-fix
Backport review comment from citra-emu/citra#4418
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