- 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:
Cameron Gutman 2008-08-02 20:53:32 +00:00
parent ca91433bbc
commit f470e856b1
2 changed files with 4 additions and 1 deletions

View file

@ -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));

View file

@ -262,6 +262,8 @@ AfdSelect( PDEVICE_OBJECT DeviceObject, PIRP Irp,
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
Irp->IoStatus.Status = Status;
return Status;
}