diff --git a/base/system/diskpart/partlist.c b/base/system/diskpart/partlist.c index dbd0ef0e24a..167858cfbb9 100644 --- a/base/system/diskpart/partlist.c +++ b/base/system/diskpart/partlist.c @@ -37,6 +37,8 @@ #define PARTITION_TBL_SIZE 4 +#define MBR_MAGIC 0xAA55 + #include typedef struct _PARTITION @@ -870,7 +872,7 @@ AddDiskToList( DiskEntry->BiosFound = FALSE; /* Check if this disk has a valid MBR */ - if (Mbr->BootCode[0] == 0 && Mbr->BootCode[1] == 0) + if (Mbr->Magic != MBR_MAGIC) DiskEntry->NoMbr = TRUE; else DiskEntry->NoMbr = FALSE;