mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[AFD]
- Fix FIONREAD for datagram sockets svn path=/trunk/; revision=52533
This commit is contained in:
@@ -448,6 +448,7 @@ SatisfyPacketRecvRequest( PAFD_FCB FCB, PIRP Irp,
|
||||
|
||||
if (!(RecvReq->TdiFlags & TDI_RECEIVE_PEEK))
|
||||
{
|
||||
FCB->Recv.Content -= *TotalBytesCopied;
|
||||
ExFreePool( DatagramRecv->Address );
|
||||
ExFreePool( DatagramRecv );
|
||||
}
|
||||
@@ -512,6 +513,8 @@ PacketSocketRecvComplete(
|
||||
SocketStateUnlock(FCB);
|
||||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
FCB->Recv.Content += Irp->IoStatus.Information;
|
||||
|
||||
DatagramRecv = ExAllocatePool( NonPagedPool, DGSize );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user