[FASTFAT] Save the FSINFO sector location

This commit is contained in:
Pierre Schweitzer 2018-06-09 12:11:43 +02:00
parent 2149c3d0d0
commit 04640f9264
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 2 additions and 0 deletions

View file

@ -232,6 +232,7 @@ VfatHasFileSystem(
FatInfo.RootCluster = ((struct _BootSector32*) Boot)->RootCluster;
FatInfo.rootStart = FatInfo.dataStart + ((FatInfo.RootCluster - 2) * FatInfo.SectorsPerCluster);
FatInfo.VolumeID = ((struct _BootSector32*) Boot)->VolumeID;
FatInfo.FSInfoSector = ((struct _BootSector32*) Boot)->FSInfoSector;
RtlCopyMemory(&FatInfo.VolumeLabel, &((struct _BootSector32*)Boot)->VolumeLabel, sizeof(FatInfo.VolumeLabel));
}
else

View file

@ -263,6 +263,7 @@ typedef struct
ULONG FatType;
ULONG Sectors;
BOOLEAN FixedMedia;
ULONG FSInfoSector;
} FATINFO, *PFATINFO;
struct _VFATFCB;