From 16d033ed6c58645cd1c3f0ddd6d5f2a57253cb55 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Tue, 22 Aug 2023 18:07:14 -0400 Subject: [PATCH] fuck this operating system I swear --- src/fprint.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fprint.hpp b/src/fprint.hpp index b494fb5..816c114 100644 --- a/src/fprint.hpp +++ b/src/fprint.hpp @@ -42,7 +42,7 @@ namespace swbf { if(file == stderr) handle = GetStdHandle(STD_ERROR_HANDLE); - WriteConsole(handle, str.data(), str.length(), nullptr, nullptr); + WriteFile(handle, str.data(), static_cast(str.length()), nullptr, nullptr); #else std::vformat_to(FputcIterator(file), format, std::make_format_args(args...)); #endif