mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Everywhere: Remove unintentional partial stream reads and writes
This commit is contained in:
parent
26516ee160
commit
ae51c1821c
44 changed files with 109 additions and 192 deletions
|
@ -284,8 +284,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
}
|
||||
auto byte_buffer = byte_buffer_or_error.release_value();
|
||||
|
||||
// FIXME: This should write the entire span.
|
||||
if (auto result = file->write_some(byte_buffer); result.is_error())
|
||||
if (auto result = file->write_until_depleted(byte_buffer); result.is_error())
|
||||
GUI::MessageBox::show(window, DeprecatedString::formatted("Couldn't save file: {}.", result.release_error()), "Saving backtrace failed"sv, GUI::MessageBox::Type::Error);
|
||||
};
|
||||
save_backtrace_button.set_enabled(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue