update main #1

Merged
Sinipelto merged 240 commits from Bananymous/banan-os:main into main 2023-11-20 13:20:51 +02:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 181d139c7d - Show all commits

View File

@ -306,8 +306,7 @@ done:
ASSERT(mode().ifdir()); ASSERT(mode().ifdir());
ASSERT(offset >= 0); ASSERT(offset >= 0);
const uint32_t data_block_count = blocks(); if (offset >= max_used_data_block_count())
if (offset >= data_block_count)
{ {
list->entry_count = 0; list->entry_count = 0;
return {}; return {};