Skip to content

Commit

Permalink
Merge pull request wheremyfoodat#534 from wheremyfoodat/crypto
Browse files Browse the repository at this point in the history
Downgrade SetFileSize failure to warning
  • Loading branch information
wheremyfoodat authored Jul 14, 2024
2 parents c4e45ee + bee414a commit 8eab353
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/kernel/file_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ void Kernel::setFileSize(u32 messagePointer, Handle fileHandle) {
if (success) {
mem.write32(messagePointer + 4, Result::Success);
} else {
Helpers::panic("FileOp::SetFileSize failed");
Helpers::warn("FileOp::SetFileSize failed");
mem.write32(messagePointer + 4, Result::FailurePlaceholder);
}
} else {
Helpers::panic("Tried to set file size of file without file descriptor");
Expand Down

0 comments on commit 8eab353

Please sign in to comment.