Author: spetreolle
Date: Fri May 24 12:24:27 2013
New Revision: 59079
URL:
http://svn.reactos.org/svn/reactos?rev=59079&view=rev
Log:
[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)
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hwdisk.c [iso-8859-1] Fri May 24 12:24:27
2013
@@ -313,8 +313,6 @@
memset((PVOID) DISKREADBUFFER, 0xcd, 512);
}
DiskReportError(TRUE);
- TRACE("BIOS reports %d harddisk%s\n",
- (int)DiskCount, (DiskCount == 1) ? "": "s");
/* Get the drive we're booting from */
MachDiskGetBootPath(BootPath, sizeof(BootPath));
@@ -349,8 +347,12 @@
reactos_disk_count++;
FsRegisterDevice(BootPath, &DiskVtbl);
+ DiskCount++;
}
PcBiosDiskCount = DiskCount;
+ TRACE("BIOS reports %d harddisk%s\n",
+ (int)DiskCount, (DiskCount == 1) ? "": "s");
+
return DiskCount != 0;
}