Author: cgutman
Date: Mon Jun 8 13:45:13 2009
New Revision: 41349
URL:
http://svn.reactos.org/svn/reactos?rev=41349&view=rev
Log:
- Check to see that the packet status isn't NDIS_STATUS_RESOURCES before forwarding
the packet descriptor to the ReceivePacketHandler
Modified:
trunk/reactos/drivers/network/ndis/ndis/miniport.c
Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Mon Jun 8 13:45:13
2009
@@ -277,19 +277,17 @@
{
AdapterBinding = CONTAINING_RECORD(CurrentEntry, ADAPTER_BINDING,
AdapterListEntry);
- if (AdapterBinding->ProtocolBinding->Chars.ReceivePacketHandler)
+ for (i = 0; i < NumberOfPackets; i++)
{
- for (i = 0; i < NumberOfPackets; i++)
- {
+ if (AdapterBinding->ProtocolBinding->Chars.ReceivePacketHandler
&&
+ NDIS_GET_PACKET_STATUS(PacketArray[i]) != NDIS_STATUS_RESOURCES)
+ {
(*AdapterBinding->ProtocolBinding->Chars.ReceivePacketHandler)(
AdapterBinding->NdisOpenBlock.ProtocolBindingContext,
PacketArray[i]);
- }
- }
- else
- {
- for (i = 0; i < NumberOfPackets; i++)
- {
+ }
+ else
+ {
UINT FirstBufferLength, TotalBufferLength, LookAheadSize, HeaderSize;
PNDIS_BUFFER NdisBuffer;
PVOID NdisBufferVA, LookAheadBuffer;