mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[AFD]
- Clear the sendable flag after a disconnect - Don't set the sendable flag if send has been closed svn path=/trunk/; revision=53009
This commit is contained in:
@@ -720,6 +720,7 @@ AfdDisconnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||
FCB->DisconnectTimeout = DisReq->Timeout;
|
||||
FCB->DisconnectPending = TRUE;
|
||||
FCB->SendClosed = TRUE;
|
||||
FCB->PollState &= ~AFD_EVENT_SEND;
|
||||
|
||||
Status = QueueUserModeIrp(FCB, Irp, FUNCTION_DISCONNECT);
|
||||
if (Status == STATUS_PENDING)
|
||||
@@ -755,6 +756,8 @@ AfdDisconnect(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||
ExFreePool(FCB->RemoteAddress);
|
||||
|
||||
FCB->RemoteAddress = NULL;
|
||||
|
||||
FCB->PollState &= ~AFD_EVENT_SEND;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -176,7 +176,8 @@ static NTSTATUS NTAPI SendComplete
|
||||
break;
|
||||
}
|
||||
|
||||
if (FCB->Send.Size - FCB->Send.BytesUsed != 0)
|
||||
if (FCB->Send.Size - FCB->Send.BytesUsed != 0 &&
|
||||
!FCB->SendClosed)
|
||||
{
|
||||
FCB->PollState |= AFD_EVENT_SEND;
|
||||
FCB->PollStatus[FD_WRITE_BIT] = STATUS_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user