mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 23:14:53 +00:00
Add a bit of defensive programming
svn path=/trunk/; revision=19283
This commit is contained in:
parent
ac2efcf7dc
commit
1c04a022f2
|
@ -125,6 +125,7 @@ HKEY FindAdapterKey( PDHCP_ADAPTER Adapter ) {
|
|||
( EnumKey, EnumKeysTop[i], "DriverDesc" );
|
||||
|
||||
if( DriverDesc &&
|
||||
RootDevice &&
|
||||
!strcmp( DriverDesc, Adapter->DhclientInfo.name ) ) {
|
||||
TargetKeyName =
|
||||
malloc( strlen( TargetKeyNameStart ) +
|
||||
|
|
Loading…
Reference in a new issue