[FASTFAT] When attaching our FCB to a FO, also set the VPB.

Spotted by Alex.
This commit is contained in:
Pierre Schweitzer 2018-05-18 10:29:45 +02:00
parent 1d11d56d1a
commit 5d743b7bd7
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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