mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
[FREELDR]
Take in account the boot disk in the number of detected disks. It allows booting without a hard disk (e.g cdrom/floppy alone with an USB storage device) svn path=/trunk/; revision=59079
This commit is contained in:
parent
44787d9e81
commit
e29102f914
1 changed files with 4 additions and 2 deletions
|
@ -313,8 +313,6 @@ HwInitializeBiosDisks(VOID)
|
||||||
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
|
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
|
||||||
}
|
}
|
||||||
DiskReportError(TRUE);
|
DiskReportError(TRUE);
|
||||||
TRACE("BIOS reports %d harddisk%s\n",
|
|
||||||
(int)DiskCount, (DiskCount == 1) ? "": "s");
|
|
||||||
|
|
||||||
/* Get the drive we're booting from */
|
/* Get the drive we're booting from */
|
||||||
MachDiskGetBootPath(BootPath, sizeof(BootPath));
|
MachDiskGetBootPath(BootPath, sizeof(BootPath));
|
||||||
|
@ -349,8 +347,12 @@ HwInitializeBiosDisks(VOID)
|
||||||
reactos_disk_count++;
|
reactos_disk_count++;
|
||||||
|
|
||||||
FsRegisterDevice(BootPath, &DiskVtbl);
|
FsRegisterDevice(BootPath, &DiskVtbl);
|
||||||
|
DiskCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
PcBiosDiskCount = DiskCount;
|
PcBiosDiskCount = DiskCount;
|
||||||
|
TRACE("BIOS reports %d harddisk%s\n",
|
||||||
|
(int)DiskCount, (DiskCount == 1) ? "": "s");
|
||||||
|
|
||||||
return DiskCount != 0;
|
return DiskCount != 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue