mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 10:45:24 +00:00
[KMTESTS]
- Complete IRPs with STATUS_INVALID_DEVICE_REQUEST by default. CORE-12295 #resolve svn path=/trunk/; revision=73153
This commit is contained in:
parent
4ce821ad14
commit
42ce59cdd2
|
@ -306,7 +306,7 @@ DriverDispatch(
|
|||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
NTSTATUS Status = STATUS_INVALID_DEVICE_REQUEST;
|
||||
PIO_STACK_LOCATION IoStackLocation;
|
||||
int i;
|
||||
|
||||
|
@ -329,6 +329,12 @@ DriverDispatch(
|
|||
IoStackLocation->MajorFunction == IRP_MJ_INTERNAL_DEVICE_CONTROL)
|
||||
return DeviceControlHandler(DeviceObject, Irp, IoStackLocation);
|
||||
|
||||
/* Return success for create, close, and cleanup */
|
||||
if (IoStackLocation->MajorFunction == IRP_MJ_CREATE ||
|
||||
IoStackLocation->MajorFunction == IRP_MJ_CLOSE ||
|
||||
IoStackLocation->MajorFunction == IRP_MJ_CLEANUP)
|
||||
Status = STATUS_SUCCESS;
|
||||
|
||||
/* default handler */
|
||||
Irp->IoStatus.Status = Status;
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
|
Loading…
Reference in a new issue