mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Merge branch 'master' of github.com:fmtlib/fmt
This commit is contained in:
commit
5b02881582
@ -1371,7 +1371,7 @@ FMT_FUNC void vprint(std::FILE* f, string_view format_str, format_args args) {
|
|||||||
if (!WriteConsoleW(reinterpret_cast<HANDLE>(_get_osfhandle(fd)),
|
if (!WriteConsoleW(reinterpret_cast<HANDLE>(_get_osfhandle(fd)),
|
||||||
u16.c_str(), static_cast<DWORD>(u16.size()), &written,
|
u16.c_str(), static_cast<DWORD>(u16.size()), &written,
|
||||||
nullptr)) {
|
nullptr)) {
|
||||||
throw format_error("failed to write to console");
|
FMT_THROW(format_error("failed to write to console"));
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user