From 24677c678705192f5148754490faaaa94ee2e833 Mon Sep 17 00:00:00 2001 From: anonymix007 <48598263+anonymix007@users.noreply.github.com> Date: Wed, 6 Nov 2024 23:04:18 +0300 Subject: [PATCH] boot: Fix .dtbauto section number for error reporting --- src/boot/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/pe.c b/src/boot/pe.c index 00739a7c74..9af6ca0dd4 100644 --- a/src/boot/pe.c +++ b/src/boot/pe.c @@ -253,7 +253,7 @@ static void pe_locate_sections_internal( j->VirtualSize, device_table, device, - i)) + (PTR_TO_SIZE(j) - PTR_TO_SIZE(section_table)) / sizeof(*j))) continue; }