diff options
author | Christian Mollekopf <mollekopf@kolabsystems.com> | 2018-05-19 11:41:53 -0700 |
---|---|---|
committer | Christian Mollekopf <mollekopf@kolabsystems.com> | 2018-05-19 11:41:53 -0700 |
commit | fe20a710618bb01e03f9f3e7b925799be73a0ab9 (patch) | |
tree | 70d71e9acd2478ace2cdec47e182516e1f21c6c4 /common/log.cpp | |
parent | 60af4113391a1af9bfaeb4cffe306a1d18366dcf (diff) | |
download | sink-fe20a710618bb01e03f9f3e7b925799be73a0ab9.tar.gz sink-fe20a710618bb01e03f9f3e7b925799be73a0ab9.zip |
Fixed debug output printing on windows
Diffstat (limited to 'common/log.cpp')
-rw-r--r-- | common/log.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/log.cpp b/common/log.cpp index b271f6e..d94536f 100644 --- a/common/log.cpp +++ b/common/log.cpp | |||
@@ -66,8 +66,8 @@ public: | |||
66 | qint64 writeData(const char *data, qint64 len) | 66 | qint64 writeData(const char *data, qint64 len) |
67 | { | 67 | { |
68 | #ifdef Q_OS_WIN | 68 | #ifdef Q_OS_WIN |
69 | const auto string = QString::fromUtf8(data, leng) | 69 | const auto string = QString::fromUtf8(data, len); |
70 | OutputDebugString(reinterpret_cast<const wchar_t*>(string.utf16())); | 70 | OutputDebugStringW(reinterpret_cast<const wchar_t*>(string.utf16())); |
71 | #else | 71 | #else |
72 | std::cout << data << std::endl; | 72 | std::cout << data << std::endl; |
73 | #endif | 73 | #endif |