- Fix packet size overflow check

svn path=/trunk/; revision=52195
This commit is contained in:
Cameron Gutman 2011-06-11 20:10:55 +00:00
parent a0c90088eb
commit f855ea9bdb

View file

@ -328,8 +328,7 @@ AfdConnectedSocketWriteData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
if (SpaceAvail < SendReq->BufferArray[i].len) if (SpaceAvail < SendReq->BufferArray[i].len)
{ {
if (FCB->Send.BytesUsed + TotalBytesCopied + if (TotalBytesCopied + SendReq->BufferArray[i].len > FCB->Send.Size)
SendReq->BufferArray[i].len > FCB->Send.Size)
{ {
UnlockBuffers( SendReq->BufferArray, SendReq->BufferCount, FALSE ); UnlockBuffers( SendReq->BufferArray, SendReq->BufferCount, FALSE );