From 27315c1111fd5cc9340c6fc7f02631a6f3065345 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Fri, 30 Dec 2016 14:39:47 -0800 Subject: [PATCH] sys: FspFsvolQueryInformation,FspFsvolSetInformation: - return STATUS_INVALID_PARAMETER on volume handles --- src/sys/fileinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sys/fileinfo.c b/src/sys/fileinfo.c index 1cf90b4f..7d244a59 100644 --- a/src/sys/fileinfo.c +++ b/src/sys/fileinfo.c @@ -627,7 +627,7 @@ static NTSTATUS FspFsvolQueryInformation( /* is this a valid FileObject? */ if (!FspFileNodeIsValid(IrpSp->FileObject->FsContext)) - return STATUS_INVALID_DEVICE_REQUEST; + return STATUS_INVALID_PARAMETER; FILE_INFORMATION_CLASS FileInformationClass = IrpSp->Parameters.QueryFile.FileInformationClass; @@ -1429,7 +1429,7 @@ static NTSTATUS FspFsvolSetInformation( /* is this a valid FileObject? */ if (!FspFileNodeIsValid(IrpSp->FileObject->FsContext)) - return STATUS_INVALID_DEVICE_REQUEST; + return STATUS_INVALID_PARAMETER; FILE_INFORMATION_CLASS FileInformationClass = IrpSp->Parameters.SetFile.FileInformationClass;