[CDFS] Remove the VPB field from the VCB. Not only it was never set, but the only times it was used was broken!

This commit is contained in:
Pierre Schweitzer 2017-11-04 19:46:01 +01:00
parent f86e78d00b
commit fa0327d6c5
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B
2 changed files with 1 additions and 2 deletions

View file

@ -161,7 +161,6 @@ typedef struct
KSPIN_LOCK FcbListLock;
LIST_ENTRY FcbListHead;
PVPB Vpb;
PDEVICE_OBJECT VolumeDevice;
PDEVICE_OBJECT StorageDevice;
PFILE_OBJECT StreamFileObject;

View file

@ -419,7 +419,7 @@ CdfsMountVolume(
DeviceExt->StreamFileObject->FsContext2 = Ccb;
DeviceExt->StreamFileObject->SectionObjectPointer = &Fcb->SectionObjectPointers;
DeviceExt->StreamFileObject->PrivateCacheMap = NULL;
DeviceExt->StreamFileObject->Vpb = DeviceExt->Vpb;
DeviceExt->StreamFileObject->Vpb = DeviceToMount->Vpb;
Ccb->PtrFileObject = DeviceExt->StreamFileObject;
Fcb->FileObject = DeviceExt->StreamFileObject;
Fcb->DevExt = (PDEVICE_EXTENSION)DeviceExt->StorageDevice;