Author: fireball
Date: Fri Apr 24 22:38:10 2009
New Revision: 40684
URL:
http://svn.reactos.org/svn/reactos?rev=40684&view=rev
Log:
- Reenable partition table exploration, but switch off disk error reporting before doing
it.
Modified:
trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
Modified: trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/arch/…
==============================================================================
--- trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] (original)
+++ trunk/reactos/boot/freeldr/freeldr/arch/i386/hardware.c [iso-8859-1] Fri Apr 24
22:38:10 2009
@@ -500,9 +500,7 @@
ULONG Signature;
CHAR Identifier[20];
CHAR ArcName[256];
-#if 0
PARTITION_TABLE_ENTRY PartitionTableEntry;
-#endif
/* Read the MBR */
if (!MachDiskReadLogicalSectors(DriveNumber, 0ULL, 1, (PVOID)DISKREADBUFFER))
@@ -538,9 +536,9 @@
sprintf(ArcName, "multi(0)disk(0)rdisk(%lu)partition(0)", DriveNumber -
0x80);
FsRegisterDevice(ArcName, &DiskVtbl);
-#if 0
/* Add partitions */
i = 0;
+ DiskReportError(FALSE);
while (MachDiskGetPartitionEntry(DriveNumber, i, &PartitionTableEntry))
{
if (PartitionTableEntry.SystemIndicator != PARTITION_ENTRY_UNUSED)
@@ -550,7 +548,7 @@
}
i++;
}
-#endif
+ DiskReportError(TRUE);
/* Convert checksum and signature to identifier string */
Identifier[0] = Hex[(Checksum >> 28) & 0x0F];