From 37339cbf6b83e1f6308f540ecb536becd8e4e78f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Fri, 25 Apr 2003 18:45:06 +0000 Subject: [PATCH] - Fixed the detection of a fat32 boot sector. svn path=/trunk/; revision=4580 --- freeldr/freeldr/fs/fsrec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freeldr/freeldr/fs/fsrec.c b/freeldr/freeldr/fs/fsrec.c index 792ebb793e3..b7d7dfe05ad 100644 --- a/freeldr/freeldr/fs/fsrec.c +++ b/freeldr/freeldr/fs/fsrec.c @@ -98,7 +98,7 @@ BOOL FsRecIsExt2(U32 DriveNumber, U32 VolumeStartSector) BOOL FsRecIsFat(U32 DriveNumber, U32 VolumeStartSector) { PFAT_BOOTSECTOR BootSector = (PFAT_BOOTSECTOR)DISKREADBUFFER; - + PFAT32_BOOTSECTOR BootSector32 = (PFAT32_BOOTSECTOR)DISKREADBUFFER; if (!DiskReadLogicalSectors(DriveNumber, VolumeStartSector, 1, BootSector)) { FileSystemError("Failed to read the boot sector."); @@ -107,7 +107,7 @@ BOOL FsRecIsFat(U32 DriveNumber, U32 VolumeStartSector) if (strncmp(BootSector->FileSystemType, "FAT12 ", 8) == 0 || strncmp(BootSector->FileSystemType, "FAT16 ", 8) == 0 || - strncmp(BootSector->FileSystemType, "FAT32 ", 8) == 0) + strncmp(BootSector32->FileSystemType, "FAT32 ", 8) == 0) { return TRUE; }