From fe20a710618bb01e03f9f3e7b925799be73a0ab9 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 19 May 2018 11:41:53 -0700 Subject: Fixed debug output printing on windows --- common/log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/log.cpp') 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: qint64 writeData(const char *data, qint64 len) { #ifdef Q_OS_WIN - const auto string = QString::fromUtf8(data, leng) - OutputDebugString(reinterpret_cast(string.utf16())); + const auto string = QString::fromUtf8(data, len); + OutputDebugStringW(reinterpret_cast(string.utf16())); #else std::cout << data << std::endl; #endif -- cgit v1.2.3