Downgrade SetFileSize failure to warning

This commit is contained in:
wheremyfoodat 2024-07-14 23:05:49 +03:00
parent 186fd3b94b
commit bee414a4f8

View file

@ -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");