mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Fixed bug in partition table code where it incorrectly calculated the partition start sector
svn path=/trunk/; revision=2624
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user