mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
- Small fix for my last commit to prevent problems if ExAllocatePool fails
svn path=/trunk/; revision=52534
This commit is contained in:
parent
72fe2efcf8
commit
fd6bb26299
1 changed files with 1 additions and 2 deletions
|
@ -514,8 +514,6 @@ PacketSocketRecvComplete(
|
|||
return Irp->IoStatus.Status;
|
||||
}
|
||||
|
||||
FCB->Recv.Content += Irp->IoStatus.Information;
|
||||
|
||||
DatagramRecv = ExAllocatePool( NonPagedPool, DGSize );
|
||||
|
||||
if( DatagramRecv ) {
|
||||
|
@ -536,6 +534,7 @@ PacketSocketRecvComplete(
|
|||
SocketStateUnlock( FCB );
|
||||
return Status;
|
||||
} else {
|
||||
FCB->Recv.Content += DatagramRecv->Len;
|
||||
InsertTailList( &FCB->DatagramList, &DatagramRecv->ListEntry );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue