From 5d743b7bd7519229cbc34752ce745af608fff62b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Fri, 18 May 2018 10:29:45 +0200 Subject: [PATCH] [FASTFAT] When attaching our FCB to a FO, also set the VPB. Spotted by Alex. --- drivers/filesystems/fastfat/fcb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/filesystems/fastfat/fcb.c b/drivers/filesystems/fastfat/fcb.c index 33124bc51b7..35bb6757950 100644 --- a/drivers/filesystems/fastfat/fcb.c +++ b/drivers/filesystems/fastfat/fcb.c @@ -670,6 +670,7 @@ vfatFCBInitializeCacheFromVolume( fileObject->SectionObjectPointer = &fcb->SectionObjectPointers; fileObject->FsContext = fcb; fileObject->FsContext2 = newCCB; + fileObject->Vpb = vcb->IoVPB; fcb->FileObject = fileObject; _SEH2_TRY @@ -833,6 +834,7 @@ vfatAttachFCBToFileObject( fileObject->SectionObjectPointer = &fcb->SectionObjectPointers; fileObject->FsContext = fcb; fileObject->FsContext2 = newCCB; + fileObject->Vpb = vcb->IoVPB; DPRINT("file open: fcb:%p PathName:%wZ\n", fcb, &fcb->PathNameU); #ifdef KDBG