Author: cgutman
Date: Mon Jul 4 15:45:58 2011
New Revision: 52534
URL:
http://svn.reactos.org/svn/reactos?rev=52534&view=rev
Log:
- Small fix for my last commit to prevent problems if ExAllocatePool fails
Modified:
trunk/reactos/drivers/network/afd/afd/read.c
Modified: trunk/reactos/drivers/network/afd/afd/read.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/re…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/read.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/read.c [iso-8859-1] Mon Jul 4 15:45:58 2011
@@ -513,8 +513,6 @@
SocketStateUnlock(FCB);
return Irp->IoStatus.Status;
}
-
- FCB->Recv.Content += Irp->IoStatus.Information;
DatagramRecv = ExAllocatePool( NonPagedPool, DGSize );
@@ -536,6 +534,7 @@
SocketStateUnlock( FCB );
return Status;
} else {
+ FCB->Recv.Content += DatagramRecv->Len;
InsertTailList( &FCB->DatagramList, &DatagramRecv->ListEntry );
}