Author: cgutman
Date: Sat Aug 2 15:53:32 2008
New Revision: 35046
URL:
http://svn.reactos.org/svn/reactos?rev=35046&view=rev
Log:
- Set Irp->IoStatus.Information to 0
- Set Irp->IoStatus.Status before returning
Modified:
branches/aicom-network-fixes/drivers/network/afd/afd/main.c
branches/aicom-network-fixes/drivers/network/afd/afd/select.c
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/main.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/main.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/main.c [iso-8859-1] Sat Aug 2
15:53:32 2008
@@ -313,6 +313,8 @@
ASSERT(FileObject == IrpSp->FileObject);
}
+ Irp->IoStatus.Information = 0;
+
switch(IrpSp->MajorFunction)
{
/* opening and closing handles to the device */
@@ -457,7 +459,6 @@
default:
Status = STATUS_NOT_IMPLEMENTED;
- Irp->IoStatus.Information = 0;
AFD_DbgPrint(MIN_TRACE, ("Unknown IOCTL (0x%x)\n",
IrpSp->Parameters.DeviceIoControl.
IoControlCode));
Modified: branches/aicom-network-fixes/drivers/network/afd/afd/select.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/afd/afd/select.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/afd/afd/select.c [iso-8859-1] Sat Aug 2
15:53:32 2008
@@ -262,6 +262,8 @@
AFD_DbgPrint(MID_TRACE,("Returning %x\n", Status));
+ Irp->IoStatus.Status = Status;
+
return Status;
}