[FREELDR]: Reset FrldrBootDrive before chainloading in some cases (when the boot drive is going to change), because ChainLoadBiosBootSectorCode uses FrldrBootDrive for the boot drive. An alternative would be to pass this boot drive as a parameter to ChainLoadBiosBootSectorCode... Fixes FreeLdr booting to another drive.

svn path=/trunk/; revision=66106
This commit is contained in:
Hermès Bélusca-Maïto 2015-01-28 23:23:48 +00:00
parent 789f1cabb1
commit 249f9c7ce2

View file

@ -154,6 +154,7 @@ LoadAndBootPartition(IN OperatingSystemItem* OperatingSystem,
// result in a read error.
//DiskStopFloppyMotor();
//DisableA20();
FrldrBootDrive = DriveNumber;
ChainLoadBiosBootSectorCode();
}
@ -211,5 +212,6 @@ LoadAndBootDrive(IN OperatingSystemItem* OperatingSystem,
// result in a read error.
//DiskStopFloppyMotor();
//DisableA20();
FrldrBootDrive = DriveNumber;
ChainLoadBiosBootSectorCode();
}