Report on which drive we couldn't find a partition table

svn path=/trunk/; revision=11742
This commit is contained in:
Gé van Geldorp 2004-11-21 12:28:12 +00:00
parent 4d111bdd6c
commit ad4cf3bf0b

View file

@ -197,6 +197,7 @@ BOOL DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PP
BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord) BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
{ {
char ErrMsg[64];
#ifdef DEBUG #ifdef DEBUG
U32 Index; U32 Index;
#endif #endif
@ -236,6 +237,8 @@ BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_R
// Check the partition table magic value // Check the partition table magic value
if (BootRecord->MasterBootRecordMagic != 0xaa55) if (BootRecord->MasterBootRecordMagic != 0xaa55)
{ {
sprintf(ErrMsg, "Invalid partition table magic 0x%x found on drive 0x%x",
BootRecord->MasterBootRecordMagic, DriveNumber);
DiskError("Invalid partition table magic (0xaa55)", 0); DiskError("Invalid partition table magic (0xaa55)", 0);
return FALSE; return FALSE;
} }