Skip to content

Commit

Permalink
drv_create: set FileObject->Vpb when opening volume (fixes FsDepends …
Browse files Browse the repository at this point in the history
…crash)
  • Loading branch information
maharmstone committed May 15, 2016
1 parent e91c5f9 commit c2f8855
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/create.c
Original file line number Diff line number Diff line change
Expand Up @@ -2819,6 +2819,9 @@ NTSTATUS STDCALL drv_create(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) {

IrpSp->FileObject->SectionObjectPointer = &Vcb->volume_fcb->nonpaged->segment_object;

if (!IrpSp->FileObject->Vpb)
IrpSp->FileObject->Vpb = DeviceObject->Vpb;

Irp->IoStatus.Information = FILE_OPENED;
Status = STATUS_SUCCESS;
} else {
Expand Down

0 comments on commit c2f8855

Please sign in to comment.