mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[AFD]
- Only trigger the close event if the pending receive list is empty svn path=/trunk/; revision=52775
This commit is contained in:
@@ -231,7 +231,9 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user