From 884182217c33c9e7751594b594fe30908f38604a Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Mon, 2 Mar 2020 19:31:40 -0800 Subject: [PATCH] Fix file loading size bug --- src/boot/fs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/boot/fs.cpp b/src/boot/fs.cpp index a479105..c375b38 100644 --- a/src/boot/fs.cpp +++ b/src/boot/fs.cpp @@ -73,6 +73,7 @@ file::load(size_t *out_size) pages, &data), L"Could not allocate pages to load file"); + size = info->file_size; try_or_raise( m_file->read(&size, data), L"Could not read from file");