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:
Art Yerkes 2008-07-29 21:52:09 +00:00
parent 1fa91ed658
commit d006ec695e
2 changed files with 2 additions and 5 deletions

View file

@ -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;
}

View file

@ -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 );
}