From 4a27e0987233f31ebef768fb7f33adc76127f4d8 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Wed, 17 Sep 2025 16:24:45 -0400 Subject: [PATCH] use partition entry size constant --- src/mbr/mbr.nasm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbr/mbr.nasm b/src/mbr/mbr.nasm index b29a80b..d3d4076 100755 --- a/src/mbr/mbr.nasm +++ b/src/mbr/mbr.nasm @@ -109,7 +109,7 @@ main: mov al, byte [bx + PartEntry_t.attributes] test al, 0x80 ; 0x80 == 1000_0000b jnz main.active_found - add bx, 0x10 ; add 16 bytes to offset + add bx, PartEntry_t_size ; add 16 bytes to offset loop main.find_active_L0 ERROR MBR_ERROR_NO_NO_BOOT_PART