freeldr/freeldr/disk
diff -u -r1.12 -r1.13
--- partition.c 9 Nov 2004 23:36:20 -0000 1.12
+++ partition.c 21 Nov 2004 12:28:12 -0000 1.13
@@ -197,6 +197,7 @@
BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
{
+ char ErrMsg[64];
#ifdef DEBUG
U32 Index;
#endif
@@ -236,6 +237,8 @@
// Check the partition table magic value
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);
return FALSE;
}