mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 17:45:40 +00:00
[AFD]: BytesAvailable needs to be updated even when peeking so we don't run off the end of our buffer
svn path=/trunk/; revision=48405
This commit is contained in:
parent
a7c693ea78
commit
caa555a453
1 changed files with 2 additions and 3 deletions
|
@ -122,11 +122,10 @@ static NTSTATUS TryToSatisfyRecvRequestFromBuffer( PAFD_FCB FCB,
|
|||
|
||||
*TotalBytesCopied += BytesToCopy;
|
||||
FcbBytesCopied += BytesToCopy;
|
||||
BytesAvailable -= BytesToCopy;
|
||||
|
||||
if (!(RecvReq->TdiFlags & TDI_RECEIVE_PEEK)) {
|
||||
if (!(RecvReq->TdiFlags & TDI_RECEIVE_PEEK))
|
||||
FCB->Recv.BytesUsed += BytesToCopy;
|
||||
BytesAvailable -= BytesToCopy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue