diff options
-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 |