Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabi Melman <gmelman1@gmail.com>2019-09-06 07:50:15 +0300
committerGitHub <noreply@github.com>2019-09-06 07:50:15 +0300
commita51b4856377a71f81b6d74b9af459305c4c644f8 (patch)
treeff4ebdcf37c4ca8c4bfe21f54aefad0475a2a357
parent139c0d135f303946bd542a9bc2d6b18d6a7415bb (diff)
parent3a13e76bb1a8c504ca0f51a8e6503ccd1d19b5be (diff)
Merge pull request #1210 from jimmyorourke/patch-1
Windows color file sink: Use WriteFile rather than WriteConsole
-rw-r--r--include/spdlog/sinks/wincolor_sink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spdlog/sinks/wincolor_sink.h b/include/spdlog/sinks/wincolor_sink.h
index 402fa121..4567a2e3 100644
--- a/include/spdlog/sinks/wincolor_sink.h
+++ b/include/spdlog/sinks/wincolor_sink.h
@@ -104,7 +104,7 @@ private:
void _print_range(const details::log_msg &msg, size_t start, size_t end)
{
DWORD size = static_cast<DWORD>(end - start);
- WriteConsoleA(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr);
+ WriteFile(out_handle_, msg.formatted.data() + start, size, nullptr, nullptr);
}
};