From 04640f9264c752a80da87d519b6a8c369f07f611 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 9 Jun 2018 12:11:43 +0200 Subject: [PATCH] [FASTFAT] Save the FSINFO sector location --- drivers/filesystems/fastfat/fsctl.c | 1 + drivers/filesystems/fastfat/vfat.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/filesystems/fastfat/fsctl.c b/drivers/filesystems/fastfat/fsctl.c index f7eaf0c7743..486535d1290 100644 --- a/drivers/filesystems/fastfat/fsctl.c +++ b/drivers/filesystems/fastfat/fsctl.c @@ -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 diff --git a/drivers/filesystems/fastfat/vfat.h b/drivers/filesystems/fastfat/vfat.h index 8148d2fc142..fcb22b9c5a3 100644 --- a/drivers/filesystems/fastfat/vfat.h +++ b/drivers/filesystems/fastfat/vfat.h @@ -263,6 +263,7 @@ typedef struct ULONG FatType; ULONG Sectors; BOOLEAN FixedMedia; + ULONG FSInfoSector; } FATINFO, *PFATINFO; struct _VFATFCB;