[CDFS] Remove the VPB field from the VCB. Not only it was never set, but the only...
authorPierre Schweitzer <pierre@reactos.org>
Sat, 4 Nov 2017 18:46:01 +0000 (19:46 +0100)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 4 Nov 2017 18:46:52 +0000 (19:46 +0100)
drivers/filesystems/cdfs/cdfs.h
drivers/filesystems/cdfs/fsctl.c

index 3d77e5b..dff86ce 100644 (file)
@@ -161,7 +161,6 @@ typedef struct
   KSPIN_LOCK FcbListLock;
   LIST_ENTRY FcbListHead;
 
-  PVPB Vpb;
   PDEVICE_OBJECT VolumeDevice;
   PDEVICE_OBJECT StorageDevice;
   PFILE_OBJECT StreamFileObject;
index f153077..44ad59c 100644 (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;