https://git.reactos.org/?p=reactos.git;a=commitdiff;h=47b9db9d029c5f53d4934…
commit 47b9db9d029c5f53d49343677998c70ed85d791d
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Sat May 26 10:12:00 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Sat May 26 10:12:55 2018 +0200
[FASTFAT] Initialize cache if neded for changing volume label.
CORE-14654
---
drivers/filesystems/fastfat/volume.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/filesystems/fastfat/volume.c b/drivers/filesystems/fastfat/volume.c
index 7222b9bceb..f4f8f738eb 100644
--- a/drivers/filesystems/fastfat/volume.c
+++ b/drivers/filesystems/fastfat/volume.c
@@ -313,6 +313,11 @@ FsdSetFsLabelInformation(
}
pRootFcb = vfatOpenRootFCB(DeviceExt);
+ Status = vfatFCBInitializeCacheFromVolume(DeviceExt, pRootFcb);
+ if (!NT_SUCCESS(Status))
+ {
+ return Status;
+ }
/* Search existing volume entry on disk */
FileOffset.QuadPart = 0;