mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 17:19:20 +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);
|
||||
}
|
||||
|
||||
Irp->IoStatus.Information = 0;
|
||||
|
||||
switch(IrpSp->MajorFunction)
|
||||
{
|
||||
/* opening and closing handles to the device */
|
||||
|
@ -457,7 +459,6 @@ AfdDispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
|
|||
|
||||
default:
|
||||
Status = STATUS_NOT_IMPLEMENTED;
|
||||
Irp->IoStatus.Information = 0;
|
||||
AFD_DbgPrint(MIN_TRACE, ("Unknown IOCTL (0x%x)\n",
|
||||
IrpSp->Parameters.DeviceIoControl.
|
||||
IoControlCode));
|
||||
|
|
|
@ -262,6 +262,8 @@ AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
|
||||
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
|
||||
|
||||
Irp->IoStatus.Status = Status;
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue