Author: cgutman
Date: Sun Aug 3 12:27:16 2008
New Revision: 35073
URL:
http://svn.reactos.org/svn/reactos?rev=35073&view=rev
Log:
- Don't continue if OpenRegistryKey fails
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/net…
==============================================================================
--- 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 12:27:16 2008
@@ -844,9 +844,11 @@
Status = OpenRegistryKey( &EnumKeyName, &EnumKey );
- if( !NT_SUCCESS(Status) )
+ if( !NT_SUCCESS(Status) ) {
TI_DbgPrint(DEBUG_DATALINK,("Couldn't open Enum key %wZ: %x\n",
&EnumKeyName, Status));
+ return Status;
+ }
for( i = 0; NT_SUCCESS(Status); i++ ) {
Status = ZwEnumerateKey( EnumKey, i, KeyBasicInformation,