diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-26 15:48:09 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-04-26 15:48:09 +0200 |
| commit | 03a0fee13445aeb95f01d64409e5304b8e97b31c (patch) | |
| tree | 3a7d86868f7033c1c08c1e5fabd9db4144e26afc /Private/NewBoot/BootKit/BootKit.hxx | |
| parent | 313c303fab092b1c45e615f960826375e7eef093 (diff) | |
MHR-16: Fix NewBoot bug due to terrible code.
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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index f7f33958..e2e371dd 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -255,7 +255,12 @@ private: Lba startLba = partBlock.StartCatalog; BTextWriter writer; + SizeT blobCounter = 0UL; + while (blob) { + if (blobCounter > blobCount) break; + ++blobCounter; + NewCatalog* catalogKind = new NewCatalog(); memset(catalogKind, 0, sizeof(NewCatalog)); |
