mirror of
https://github.com/reactos/reactos.git
synced 2024-09-03 17:19:20 +00:00
- Don't forget to call UnlockBuffers()
- Use Irp->IoStatus.Information instead of RecvReq->BufferArray[0].len svn path=/branches/aicom-network-fixes/; revision=35283
This commit is contained in:
parent
bfa1b80f5f
commit
f0d01cf5aa
|
@ -602,8 +602,10 @@ AfdPacketSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
|
||||
PollReeval( FCB->DeviceExt, FCB->FileObject );
|
||||
|
||||
UnlockBuffers( RecvReq->BufferArray, RecvReq->BufferCount, TRUE );
|
||||
|
||||
return UnlockAndMaybeComplete
|
||||
( FCB, Status, Irp, RecvReq->BufferArray[0].len, NULL );
|
||||
( FCB, Status, Irp, Irp->IoStatus.Information, NULL );
|
||||
} else {
|
||||
Status = SatisfyPacketRecvRequest
|
||||
( FCB, Irp, DatagramRecv,
|
||||
|
@ -616,6 +618,8 @@ AfdPacketSocketReadData(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
|||
|
||||
PollReeval( FCB->DeviceExt, FCB->FileObject );
|
||||
|
||||
UnlockBuffers( RecvReq->BufferArray, RecvReq->BufferCount, TRUE );
|
||||
|
||||
return UnlockAndMaybeComplete
|
||||
( FCB, Status, Irp, Irp->IoStatus.Information, NULL );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue