fuck this operating system I swear

This commit is contained in:
Lily Tsuru 2023-08-22 18:07:14 -04:00
parent 9f3f95d611
commit 16d033ed6c
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ namespace swbf {
if(file == stderr) if(file == stderr)
handle = GetStdHandle(STD_ERROR_HANDLE); handle = GetStdHandle(STD_ERROR_HANDLE);
WriteConsole(handle, str.data(), str.length(), nullptr, nullptr); WriteFile(handle, str.data(), static_cast<DWORD>(str.length()), nullptr, nullptr);
#else #else
std::vformat_to(FputcIterator(file), format, std::make_format_args(args...)); std::vformat_to(FputcIterator(file), format, std::make_format_args(args...));
#endif #endif