Fix swapping for fat recognition.

svn path=/trunk/; revision=28804
This commit is contained in:
Art Yerkes 2007-09-03 06:58:25 +00:00
parent 2123b0666e
commit 39ed067ac8

View file

@ -247,7 +247,7 @@ BOOLEAN FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector, ULONG Partitio
//
// Check the boot sector magic
//
if (! ISFATX(FatType) && FatVolumeBootSector->BootSectorMagic != 0xaa55)
if (! ISFATX(FatType) && SWAPW(FatVolumeBootSector->BootSectorMagic) != 0xaa55)
{
sprintf(ErrMsg, "Invalid boot sector magic on drive 0x%x (expected 0xaa55 found 0x%x)",
DriveNumber, FatVolumeBootSector->BootSectorMagic);