inc,sys,tst: FSP_FSCTL_VOLUME_PARAMS::RejectIrpPriorToTransact

This commit is contained in:
Bill Zissimopoulos
2020-02-03 14:59:23 -08:00
parent 9e32fed598
commit 51350d5a42
7 changed files with 54 additions and 6 deletions

View File

@ -286,6 +286,9 @@ static NTSTATUS FspFsvolQueryVolumeInformation(
{
PAGED_CODE();
if (!FspFsvolDeviceReadyToAcceptIrp(FsvolDeviceObject))
return STATUS_CANCELLED;
NTSTATUS Result;
PUINT8 Buffer = Irp->AssociatedIrp.SystemBuffer;
PUINT8 BufferEnd = Buffer + IrpSp->Parameters.QueryVolume.Length;
@ -414,6 +417,9 @@ static NTSTATUS FspFsvolSetVolumeInformation(
{
PAGED_CODE();
if (!FspFsvolDeviceReadyToAcceptIrp(FsvolDeviceObject))
return STATUS_CANCELLED;
NTSTATUS Result;
FS_INFORMATION_CLASS FsInformationClass = IrpSp->Parameters.SetVolume.FsInformationClass;
PVOID Buffer = Irp->AssociatedIrp.SystemBuffer;