mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +00:00
- Set Irp->IoStatus.Information to 0
- Set Irp->IoStatus.Status before returning svn path=/branches/aicom-network-fixes/; revision=35046
This commit is contained in:
parent
ca91433bbc
commit
f470e856b1
|
@ -313,6 +313,8 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
ASSERT(FileObject == IrpSp->FileObject);
|
ASSERT(FileObject == IrpSp->FileObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Irp->IoStatus.Information = 0;
|
||||||
|
|
||||||
switch(IrpSp->MajorFunction)
|
switch(IrpSp->MajorFunction)
|
||||||
{
|
{
|
||||||
/* opening and closing handles to the device */
|
/* opening and closing handles to the device */
|
||||||
|
@ -457,7 +459,6 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Status = STATUS_NOT_IMPLEMENTED;
|
Status = STATUS_NOT_IMPLEMENTED;
|
||||||
Irp->IoStatus.Information = 0;
|
|
||||||
AFD_DbgPrint(MIN_TRACE, ("Unknown IOCTL (0x%x)\n",
|
AFD_DbgPrint(MIN_TRACE, ("Unknown IOCTL (0x%x)\n",
|
||||||
IrpSp->Parameters.DeviceIoControl.
|
IrpSp->Parameters.DeviceIoControl.
|
||||||
IoControlCode));
|
IoControlCode));
|
||||||
|
|
|
@ -262,6 +262,8 @@ AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||||
|
|
||||||
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
|
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
|
||||||
|
|
||||||
|
Irp->IoStatus.Status = Status;
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue