From f410547dd1e69a4f81860fd381904675920cb588 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 6 Sep 2008 21:45:23 +0000 Subject: [PATCH] - Return NDIS_STATUS_RESOURCES not NDIS_STATUS_NOT_ACCEPTED when we fail to allocate memory svn path=/branches/aicom-network-fixes/; revision=36009 --- drivers/network/tcpip/tcpip/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/network/tcpip/tcpip/buffer.c b/drivers/network/tcpip/tcpip/buffer.c index dd5021d6ab2..35b2d1f555f 100644 --- a/drivers/network/tcpip/tcpip/buffer.c +++ b/drivers/network/tcpip/tcpip/buffer.c @@ -351,7 +351,7 @@ NDIS_STATUS AllocatePacketWithBufferX( PNDIS_PACKET *NdisPacket, PCHAR NewData; NewData = ExAllocatePool( NonPagedPool, Len ); - if( !NewData ) return NDIS_STATUS_NOT_ACCEPTED; // XXX + if( !NewData ) return NDIS_STATUS_RESOURCES; TrackWithTag(EXALLOC_TAG, NewData, File, Line); if( Data ) RtlCopyMemory(NewData, Data, Len);