diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-22 22:39:01 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-04-22 22:39:01 +0200 |
| commit | bb1d9fa4b7b2c680ed3c0ca16c060dd991bda16f (patch) | |
| tree | 7cd86b7f835efe3fc5fd4143423462a117d9b26c /dev/boot/BootKit | |
| parent | d67240d20d1d4bbe33134e640fd632cfd5fc6795 (diff) | |
dev, boot: fixed nasty bugs inside bootloader.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/boot/BootKit')
| -rw-r--r-- | dev/boot/BootKit/BootKit.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/boot/BootKit/BootKit.h b/dev/boot/BootKit/BootKit.h index 2555812f..53e32d11 100644 --- a/dev/boot/BootKit/BootKit.h +++ b/dev/boot/BootKit/BootKit.h @@ -338,7 +338,7 @@ namespace Boot return false; } - NEFS_ROOT_PARTITION_BLOCK part{0}; + NEFS_ROOT_PARTITION_BLOCK part{}; CopyMem(part.Ident, kNeFSIdent, kNeFSIdentLen - 1); CopyMem(part.PartitionName, part_name, StrLen(part_name)); @@ -364,7 +364,7 @@ namespace Boot writer << "BootZ: Sector size: " << part.SectorSize << "\r"; #if defined(BOOTZ_EPM_SUPPORT) - EPM_PART_BLOCK epm_boot{0}; + EPM_PART_BLOCK epm_boot{}; const auto kFsName = "NeFS"; const auto kBlockName = "OS (EPM)"; @@ -394,7 +394,7 @@ namespace Boot writer.Write(L"BootZ: Drive is EPM formatted.\r"); #elif defined(BOOTZ_GPT_SUPPORT) || defined(BOOTZ_VEPM_SUPPORT) - GPT_PARTITION_TABLE gpt_part{0}; + GPT_PARTITION_TABLE gpt_part{}; CopyMem(gpt_part.Signature, reinterpret_cast<VoidPtr>(const_cast<Char*>(kMagicGPT)), StrLen(kMagicGPT)); @@ -436,7 +436,7 @@ namespace Boot #if defined(BOOTZ_VEPM_SUPPORT) const auto kBlockName = "OS (VEPM)"; - GPT_PARTITION_ENTRY gpt_part_entry{0}; + GPT_PARTITION_ENTRY gpt_part_entry{}; gpt_part_entry.StartLBA = kNeFSRootCatalogStartAddress; gpt_part_entry.EndLBA = fDiskDev.GetDiskSize(); @@ -454,7 +454,7 @@ namespace Boot fDiskDev.Leak().mSize = sizeof(GPT_PARTITION_ENTRY); fDiskDev.Write((Char*)&gpt_part_entry, sizeof(GPT_PARTITION_ENTRY)); - EPM_PART_BLOCK epm_boot{0}; + EPM_PART_BLOCK epm_boot{}; const auto kFsName = "NeFS"; |
