mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 17:59:48 +08:00
[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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user