From 5fd199568129ff97cd2e54610ecfe451eab85010 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sat, 24 Jul 2004 04:49:33 +0000 Subject: [PATCH] Parallel commit: See this osr page: http://www.osr.com/ddk/network/103ndisx_51pu.htm Fixes problem with reactos ne2000 driver and ndis resulting in random heap corruption. The NdisMEthIndicateReceive macro passes the MiniportAdapterHandle, not the ETH_FILTER from inside it. svn path=/trunk/; revision=10277 --- reactos/w32api/include/ddk/ndis.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/w32api/include/ddk/ndis.h b/reactos/w32api/include/ddk/ndis.h index 8ab5d5c9891..fa53f647c53 100644 --- a/reactos/w32api/include/ddk/ndis.h +++ b/reactos/w32api/include/ddk/ndis.h @@ -4069,7 +4069,7 @@ typedef VOID DDKAPI typedef VOID DDKAPI (*ETH_RCV_INDICATE_HANDLER)( - IN PETH_FILTER Filter, + IN NDIS_HANDLE MiniportAdapter, IN NDIS_HANDLE MacReceiveContext, IN PCHAR Address, IN PVOID HeaderBuffer, @@ -4627,7 +4627,7 @@ NdisMDeregisterIoPortRange( PacketSize) \ { \ (*((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->EthRxIndicateHandler)( \ - (((PNDIS_MINIPORT_BLOCK)(MiniportAdapterHandle))->FilterDbs.EthDB), \ + (MiniportAdapterHandle), \ (MiniportReceiveContext), \ (HeaderBuffer), \ (HeaderBuffer), \