Author: arty
Date: Sun Aug 13 11:05:14 2006
New Revision: 23566
URL:
http://svn.reactos.org/svn/reactos?rev=23566&view=rev
Log:
Accept a NULL ResourceList if the caller is just asking how big the result
will be, as indicated by a zero BufferSize.
Modified:
trunk/reactos/drivers/network/ndis/ndis/hardware.c
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 Aug 13 11:05:14 2006
@@ -103,7 +103,7 @@
ULONG ResourceListSize;
PAGED_CODE();
- ASSERT((Status && ResourceList) || *BufferSize != 0);
+ ASSERT((Status && ResourceList) || (BufferSize && *BufferSize == 0));
NDIS_DbgPrint(MAX_TRACE, ("Called\n"));