Author: cgutman
Date: Mon Jul 4 15:35:16 2011
New Revision: 52533
URL:
http://svn.reactos.org/svn/reactos?rev=52533&view=rev
Log:
[AFD]
- Fix FIONREAD for datagram sockets
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:35:16 2011
@@ -448,6 +448,7 @@
if (!(RecvReq->TdiFlags & TDI_RECEIVE_PEEK))
{
+ FCB->Recv.Content -= *TotalBytesCopied;
ExFreePool( DatagramRecv->Address );
ExFreePool( DatagramRecv );
}
@@ -512,6 +513,8 @@
SocketStateUnlock(FCB);
return Irp->IoStatus.Status;
}
+
+ FCB->Recv.Content += Irp->IoStatus.Information;
DatagramRecv = ExAllocatePool( NonPagedPool, DGSize );