mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
Report on which drive we couldn't find a partition table
svn path=/trunk/; revision=11742
This commit is contained in:
parent
4d111bdd6c
commit
ad4cf3bf0b
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,7 @@ BOOL DiskGetFirstExtendedPartitionEntry(PMASTER_BOOT_RECORD MasterBootRecord, PP
|
|||
|
||||
BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_RECORD BootRecord)
|
||||
{
|
||||
char ErrMsg[64];
|
||||
#ifdef DEBUG
|
||||
U32 Index;
|
||||
#endif
|
||||
|
@ -236,6 +237,8 @@ BOOL DiskReadBootRecord(U32 DriveNumber, U64 LogicalSectorNumber, PMASTER_BOOT_R
|
|||
// 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue