Kernel: Add missing TRY() to font loading

This commit is contained in:
Bananymous 2023-09-27 00:49:53 +03:00
parent ec2baeb276
commit 6e1825d6b4
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ namespace Kernel
BAN::Vector<uint8_t> file_data; BAN::Vector<uint8_t> file_data;
TRY(file_data.resize(inode->size())); TRY(file_data.resize(inode->size()));
inode->read(0, file_data.data(), file_data.size()); TRY(inode->read(0, file_data.data(), file_data.size()));
if (file_data.size() < 4) if (file_data.size() < 4)
return BAN::Error::from_error_code(ErrorCode::Font_FileTooSmall); return BAN::Error::from_error_code(ErrorCode::Font_FileTooSmall);