diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-01 00:17:26 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-05-01 00:17:26 +0200 |
| commit | 39252db4317b2e53eee59217ca7bb42a0b531443 (patch) | |
| tree | 5da3342e1d6431faa542a253010fffd0714b4119 /Private/NewBoot/BootKit/BootKit.hxx | |
| parent | 32efe47d7ba51b6369baa3619b0a91591beeb1df (diff) | |
NewFS: Fix catalogs, fork must also have the catalog's owner name inside
of them.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit/BootKit.hxx')
| -rw-r--r-- | Private/NewBoot/BootKit/BootKit.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
