Author: cwittich
Date: Sun Jul 30 00:23:44 2006
New Revision: 23368
URL:
http://svn.reactos.org/svn/reactos?rev=23368&view=rev
Log:
fix ASSERT in ndis, now the Realtek 8029AS (ne2000) driver is working
Modified:
trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c
trunk/reactos/drivers/network/ndis/ndis/hardware.c
Modified: trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/dd/ne2000/…
==============================================================================
--- trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c (original)
+++ trunk/reactos/drivers/network/dd/ne2000/ne2000/main.c Sun Jul 30 00:23:44 2006
@@ -165,7 +165,7 @@
WrapperConfigurationContext,
NULL,
&BufferSize);
- if (*Status != NDIS_STATUS_RESOURCES)
+ if (*Status != NDIS_STATUS_SUCCESS)
return;
*Status = NdisAllocateMemory((PVOID)&AssignedResources,
Modified: trunk/reactos/drivers/network/ndis/ndis/hardware.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/hardware.c (original)
+++ trunk/reactos/drivers/network/ndis/ndis/hardware.c Sun Jul 30 00:23:44 2006
@@ -103,7 +103,7 @@
ULONG ResourceListSize;
PAGED_CODE();
- ASSERT(Status && ResourceList);
+ ASSERT((Status && ResourceList) || *BufferSize != 0);
NDIS_DbgPrint(MAX_TRACE, ("Called\n"));