https://git.reactos.org/?p=reactos.git;a=commitdiff;h=04640f9264c752a80da87d519b6a8c369f07f611

commit 04640f9264c752a80da87d519b6a8c369f07f611
Author:     Pierre Schweitzer <pie...@reactos.org>
AuthorDate: Sat Jun 9 12:11:43 2018 +0200
Commit:     Pierre Schweitzer <pie...@reactos.org>
CommitDate: Sat Jun 9 12:11:43 2018 +0200

    [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 f7eaf0c774..486535d129 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 8148d2fc14..fcb22b9c5a 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;

Reply via email to