[ros-diffs] [cgutman] 35055: - Check to see if the ZwEnumerateKey call succeeded with the larger buffer and continue if possible

cgutman at svn.reactos.org cgutman at svn.reactos.org
Sun Aug 3 07:10:54 CEST 2008


Author: cgutman
Date: Sun Aug  3 00:10:53 2008
New Revision: 35055

URL: http://svn.reactos.org/svn/reactos?rev=35055&view=rev
Log:
 - Check to see if the ZwEnumerateKey call succeeded with the larger buffer and continue if possible

Modified:
    branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c

Modified: branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c
URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c?rev=35055&r1=35054&r2=35055&view=diff
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] (original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/datalink/lan.c [iso-8859-1] Sun Aug  3 00:10:53 2008
@@ -860,8 +860,10 @@
             Status = ZwEnumerateKey( EnumKey, i, KeyBasicInformation,
                                      Kbio, KbioLength, &ResultLength );
 
-            TI_DbgPrint(DEBUG_DATALINK,("Couldn't enum key child %d\n", i));
-            return Status;
+            if( !NT_SUCCESS(Status) ) {
+                TI_DbgPrint(DEBUG_DATALINK,("Couldn't enum key child %d\n", i));
+                return Status;
+            }
         }
 
         if( NT_SUCCESS(Status) ) {



More information about the Ros-diffs mailing list