- Don't continue if OpenRegistryKey fails

svn path=/branches/aicom-network-fixes/; revision=35073
This commit is contained in:
Cameron Gutman 2008-08-03 17:27:16 +00:00
parent 6286fe5bb6
commit fa8410c89c

View file

@ -844,9 +844,11 @@ static NTSTATUS FindDeviceDescForAdapter( PUNICODE_STRING Name,
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,