[ros-diffs] [cgutman] 35745: - Revert my last commit - Looks like this is meant to fail - I added a comment so no one does this again

cgutman at svn.reactos.org cgutman at svn.reactos.org
Fri Aug 29 06:23:10 CEST 2008


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/network/dd/ne2000/ne2000/main.c?rev=35745&r1=35744&r2=35745&view=diff
==============================================================================
--- 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,



More information about the Ros-diffs mailing list