mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
Patch by Cameron Gutman (aicommander (at) gmail (dot) com)
- Remove a hack from DispTdiSendDatagram - Fix a couple of bugs that resulted in clearing the wrong request svn path=/trunk/; revision=34938
This commit is contained in:
parent
1fa91ed658
commit
d006ec695e
2 changed files with 2 additions and 5 deletions
|
@ -41,7 +41,7 @@ static NTSTATUS NTAPI SendComplete
|
|||
ASSERT_IRQL(APC_LEVEL);
|
||||
|
||||
if (Irp->Cancel) {
|
||||
FCB->ReceiveIrp.InFlightRequest = NULL;
|
||||
FCB->SendIrp.InFlightRequest = NULL;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -175,7 +175,7 @@ static NTSTATUS NTAPI PacketSocketSendComplete
|
|||
Irp->IoStatus.Information));
|
||||
|
||||
if (Irp->Cancel) {
|
||||
FCB->ReceiveIrp.InFlightRequest = NULL;
|
||||
FCB->SendIrp.InFlightRequest = NULL;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -1018,9 +1018,6 @@ NTSTATUS DispTdiSendDatagram(
|
|||
|
||||
if (Status != STATUS_PENDING) {
|
||||
DispDataRequestComplete(Irp, Status, Irp->IoStatus.Information);
|
||||
/* Return STATUS_PENDING because DispPrepareIrpForCancel
|
||||
marks Irp as pending */
|
||||
Status = STATUS_PENDING;
|
||||
} else
|
||||
IoMarkIrpPending( Irp );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue