mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[AFD]
- Fix FIONREAD for datagram sockets svn path=/trunk/; revision=52533
This commit is contained in:
parent
00651a94cd
commit
72fe2efcf8
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue