mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:22:57 +00:00
Fix a copy-paste mistake and remove an unused variable
svn path=/trunk/; revision=48401
This commit is contained in:
parent
14fc97df0c
commit
4e63fd0e5a
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,6 @@ static NTSTATUS TryToSatisfyRecvRequestFromBuffer( PAFD_FCB FCB,
|
||||||
BytesAvailable =
|
BytesAvailable =
|
||||||
FCB->Recv.Content - FCB->Recv.BytesUsed;
|
FCB->Recv.Content - FCB->Recv.BytesUsed;
|
||||||
PAFD_MAPBUF Map;
|
PAFD_MAPBUF Map;
|
||||||
NTSTATUS Status;
|
|
||||||
*TotalBytesCopied = 0;
|
*TotalBytesCopied = 0;
|
||||||
|
|
||||||
|
|
||||||
|
@ -178,6 +177,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
||||||
NextIrp->IoStatus.Information = 0;
|
NextIrp->IoStatus.Information = 0;
|
||||||
if( NextIrp == Irp ) RetStatus = Status;
|
if( NextIrp == Irp ) RetStatus = Status;
|
||||||
if( NextIrp->MdlAddress ) UnlockRequest( NextIrp, IoGetCurrentIrpStackLocation( NextIrp ) );
|
if( NextIrp->MdlAddress ) UnlockRequest( NextIrp, IoGetCurrentIrpStackLocation( NextIrp ) );
|
||||||
|
(void)IoSetCancelRoutine(NextIrp, NULL);
|
||||||
IoCompleteRequest( NextIrp, IO_NETWORK_INCREMENT );
|
IoCompleteRequest( NextIrp, IO_NETWORK_INCREMENT );
|
||||||
FCB->Overread = TRUE;
|
FCB->Overread = TRUE;
|
||||||
}
|
}
|
||||||
|
@ -220,6 +220,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
|
||||||
RetBytesCopied = TotalBytesCopied;
|
RetBytesCopied = TotalBytesCopied;
|
||||||
}
|
}
|
||||||
if( NextIrp->MdlAddress ) UnlockRequest( NextIrp, IoGetCurrentIrpStackLocation( NextIrp ) );
|
if( NextIrp->MdlAddress ) UnlockRequest( NextIrp, IoGetCurrentIrpStackLocation( NextIrp ) );
|
||||||
|
(void)IoSetCancelRoutine(NextIrp, NULL);
|
||||||
IoCompleteRequest( NextIrp, IO_NETWORK_INCREMENT );
|
IoCompleteRequest( NextIrp, IO_NETWORK_INCREMENT );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue