mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Don't continue if OpenRegistryKey fails
svn path=/branches/aicom-network-fixes/; revision=35073
This commit is contained in:
parent
6286fe5bb6
commit
fa8410c89c
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue