From 1c26a402b0bd9955eeb44698e17d58f1926bd106 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Wed, 27 Sep 2023 00:49:53 +0300 Subject: [PATCH] Kernel: Add missing TRY() to font loading --- kernel/kernel/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kernel/Font.cpp b/kernel/kernel/Font.cpp index d7c210bcc0..93750a8490 100644 --- a/kernel/kernel/Font.cpp +++ b/kernel/kernel/Font.cpp @@ -43,7 +43,7 @@ namespace Kernel BAN::Vector file_data; 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) return BAN::Error::from_error_code(ErrorCode::Font_FileTooSmall);