mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
Fix swapping for fat recognition.
svn path=/trunk/; revision=28804
This commit is contained in:
parent
2123b0666e
commit
39ed067ac8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue