mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[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:
parent
789f1cabb1
commit
249f9c7ce2
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue