Unverified Commit 3a13e76b authored by jimmyorourke's avatar jimmyorourke Committed by GitHub

Use WriteFile rather than WriteConsole to be able to use file handles or pipes

parent 139c0d13
......@@ -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);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment