Author: cgutman
Date: Fri Jul 22 04:31:33 2011
New Revision: 52775
URL:
http://svn.reactos.org/svn/reactos?rev=52775&view=rev
Log:
[AFD]
- Only trigger the close event if the pending receive list is empty
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 Jul 22 04:31:33 2011
@@ -231,7 +231,9 @@
FCB->PollStatus[FD_READ_BIT] = STATUS_SUCCESS;
PollReeval( FCB->DeviceExt, FCB->FileObject );
}
- else if (CantReadMore(FCB) && !(FCB->PollState & (AFD_EVENT_ABORT |
AFD_EVENT_CLOSE)))
+ else if (CantReadMore(FCB) &&
+ !(FCB->PollState & (AFD_EVENT_ABORT | AFD_EVENT_CLOSE)) &&
+ IsListEmpty(&FCB->PendingIrpList[FUNCTION_RECV]))
{
FCB->PollState &= ~AFD_EVENT_RECEIVE;