Merge pull request #1210 from jimmyorourke/patch-1

Windows color file sink: Use WriteFile rather than WriteConsole
This commit is contained in:
Gabi Melman 2019-09-06 07:50:15 +03:00 committed by GitHub
commit a51b485637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
};