Fixed bug in partition table code where it incorrectly calculated the partition start sector

svn path=/trunk/; revision=2624
This commit is contained in:
Brian Palmer 2002-02-14 23:11:05 +00:00
parent 40910fe910
commit 67d2ffb153
2 changed files with 3 additions and 1 deletions

View file

@ -47,6 +47,8 @@ BOOL FatOpenVolume(ULONG DriveNumber, ULONG VolumeStartSector)
ULONG PhysicalHead;
ULONG PhysicalSector;
DbgPrint((DPRINT_FILESYSTEM, "FatOpenVolume() DriveNumber = 0x%x VolumeStartSector = %d\n", DriveNumber, VolumeStartSector));
// Store the drive number
FatDriveNumber = DriveNumber;

View file

@ -161,7 +161,7 @@ BOOL OpenDiskDrive(ULONG DriveNumber, ULONG PartitionNumber)
case PARTITION_FAT32:
case PARTITION_FAT32_XINT13:
FileSystemType = FS_FAT;
return FatOpenVolume(DriveNumber, PartitionTableEntry.StartSector);
return FatOpenVolume(DriveNumber, PartitionTableEntry.SectorCountBeforePartition);
default:
FileSystemType = 0;
FileSystemError("Unsupported file system.");