Author: cgutman
Date: Fri Aug 24 06:03:25 2012
New Revision: 57147
URL:
http://svn.reactos.org/svn/reactos?rev=57147&view=rev
Log:
[AFD]
- Fix a bug causing FIONREAD to return an incorrect value after a datagram receive
completes when only returning a subset of the data (returns WSAEMSGSIZE)
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] Fri Aug 24 06:03:25 2012
@@ -401,7 +401,7 @@
if (!(RecvReq->TdiFlags & TDI_RECEIVE_PEEK))
{
- FCB->Recv.Content -= *TotalBytesCopied;
+ FCB->Recv.Content -= DatagramRecv->Len;
ExFreePool( DatagramRecv->Address );
ExFreePool( DatagramRecv );
}