From 81752ca2117b306e2311212441f3879a6151bcd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Wed, 6 May 2026 22:21:59 +0200 Subject: [PATCH] [FREELDR] Reset BootType before reading its value in the freeldr.ini OS section, if it exists Because if the value doesn't exist in the OS section, the value isn't reset and the code would reuse a stray one that was for the previous entry. --- boot/freeldr/freeldr/oslist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/boot/freeldr/freeldr/oslist.c b/boot/freeldr/freeldr/oslist.c index c6fceb1e61b..528223de131 100644 --- a/boot/freeldr/freeldr/oslist.c +++ b/boot/freeldr/freeldr/oslist.c @@ -161,6 +161,7 @@ InitOperatingSystemList( if (HadSection) { /* This is a new OS entry: try to read the boot type */ + *BootType = ANSI_NULL; IniReadSettingByName(SectionId, "BootType", BootType, sizeof(BootType)); } else