Author: cgutman
Date: Thu Aug 28 23:23:10 2008
New Revision: 35745
URL: http://svn.reactos.org/svn/reactos?rev=35745&view=rev
Log:
- Revert my last commit
- Looks like this is meant to fail
- I added a comment so no one does this again
Modified:
branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c
Modified: branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/dd/ne2000/ne2000/main.c [iso-8859-1] Thu Aug 28 23:23:10 2008
@@ -161,11 +161,13 @@
PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor;
int i;
+ /* This is only to get the required BufferSize so it shouldn't succeed */
NdisMQueryAdapterResources(Status,
WrapperConfigurationContext,
NULL,
&BufferSize);
- if (*Status != NDIS_STATUS_SUCCESS)
+
+ if (*Status == NDIS_STATUS_SUCCESS)
return;
*Status = NdisAllocateMemory((PVOID)&AssignedResources,