mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
- Make sure we successfully allocated memory
svn path=/branches/aicom-network-fixes/; revision=36042
This commit is contained in:
parent
f410547dd1
commit
23787cbeb2
1 changed files with 5 additions and 0 deletions
|
@ -861,6 +861,11 @@ static NTSTATUS FindDeviceDescForAdapter( PUNICODE_STRING Name,
|
|||
ExFreePool( Kbio );
|
||||
KbioLength = ResultLength;
|
||||
Kbio = ExAllocatePool( NonPagedPool, KbioLength );
|
||||
if( !Kbio ) {
|
||||
TI_DbgPrint(DEBUG_DATALINK,("Failed to allocate memory\n"));
|
||||
NtClose( EnumKey );
|
||||
return STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
Status = ZwEnumerateKey( EnumKey, i, KeyBasicInformation,
|
||||
Kbio, KbioLength, &ResultLength );
|
||||
|
|
Loading…
Reference in a new issue