mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 23:28:15 +00:00
- Make sure CLASS2 driver returns STATUS_UNSUCCESSFUL if receiving a RESET_DEVICE ioctl.
svn path=/trunk/; revision=28983
This commit is contained in:
parent
109fe2a8fd
commit
19dc9c4a64
|
@ -3551,6 +3551,14 @@ Return Value:
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
ULONG modifiedIoControlCode;
|
ULONG modifiedIoControlCode;
|
||||||
|
|
||||||
|
// Class can't handle RESET_DEVICE ioctl
|
||||||
|
if (irpStack->Parameters.DeviceIoControl.IoControlCode == IOCTL_STORAGE_RESET_DEVICE)
|
||||||
|
{
|
||||||
|
status = Irp->IoStatus.Status = STATUS_UNSUCCESSFUL;
|
||||||
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||||
|
goto SetStatusAndReturn;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// If this is a pass through I/O control, set the minor function code
|
// If this is a pass through I/O control, set the minor function code
|
||||||
// and device address and pass it to the port driver.
|
// and device address and pass it to the port driver.
|
||||||
|
|
Loading…
Reference in a new issue