mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 17:00:03 +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 );
|
Status = OpenRegistryKey( &EnumKeyName, &EnumKey );
|
||||||
|
|
||||||
if( !NT_SUCCESS(Status) )
|
if( !NT_SUCCESS(Status) ) {
|
||||||
TI_DbgPrint(DEBUG_DATALINK,("Couldn't open Enum key %wZ: %x\n",
|
TI_DbgPrint(DEBUG_DATALINK,("Couldn't open Enum key %wZ: %x\n",
|
||||||
&EnumKeyName, Status));
|
&EnumKeyName, Status));
|
||||||
|
return Status;
|
||||||
|
}
|
||||||
|
|
||||||
for( i = 0; NT_SUCCESS(Status); i++ ) {
|
for( i = 0; NT_SUCCESS(Status); i++ ) {
|
||||||
Status = ZwEnumerateKey( EnumKey, i, KeyBasicInformation,
|
Status = ZwEnumerateKey( EnumKey, i, KeyBasicInformation,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue