mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
- Make sure we successfully allocated memory
svn path=/branches/aicom-network-fixes/; revision=36042
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user