From 39252db4317b2e53eee59217ca7bb42a0b531443 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 1 May 2024 00:17:26 +0200 Subject: NewFS: Fix catalogs, fork must also have the catalog's owner name inside of them. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/BootKit.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Private/NewBoot/BootKit/BootKit.hxx') diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 212e8914..03dddcb3 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -251,9 +251,11 @@ private: Char bufCatalog[sizeof(NewCatalog)] = { 0 }; + constexpr auto cNewFSCatalogPadding = 4; + NewCatalog* catalogKind = (NewCatalog*)bufCatalog; catalogKind->PrevSibling = startLba; - catalogKind->NextSibling = (startLba + sizeof(NewCatalog)); + catalogKind->NextSibling = (startLba + (sizeof(NewCatalog) * cNewFSCatalogPadding)); /// Fill catalog kind. catalogKind->Kind = blob->fKind; -- cgit v1.2.3