mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +00:00
- Reenable partition table exploration, but switch off disk error reporting before doing it.
svn path=/trunk/; revision=40684
This commit is contained in:
parent
58105388f3
commit
c9c9947227
1 changed files with 2 additions and 4 deletions
|
@ -500,9 +500,7 @@ SetHarddiskIdentifier(PCONFIGURATION_COMPONENT_DATA DiskKey,
|
|||
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 @@ SetHarddiskIdentifier(PCONFIGURATION_COMPONENT_DATA DiskKey,
|
|||
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 @@ SetHarddiskIdentifier(PCONFIGURATION_COMPONENT_DATA DiskKey,
|
|||
}
|
||||
i++;
|
||||
}
|
||||
#endif
|
||||
DiskReportError(TRUE);
|
||||
|
||||
/* Convert checksum and signature to identifier string */
|
||||
Identifier[0] = Hex[(Checksum >> 28) & 0x0F];
|
||||
|
|
Loading…
Reference in a new issue