- Close the handle on failure

svn path=/branches/aicom-network-fixes/; revision=35116
This commit is contained in:
Cameron Gutman 2008-08-05 01:46:59 +00:00
parent 69ef129571
commit 1fccbafaed

View file

@ -867,6 +867,7 @@ static NTSTATUS FindDeviceDescForAdapter( PUNICODE_STRING Name,
if( !NT_SUCCESS(Status) ) {
TI_DbgPrint(DEBUG_DATALINK,("Couldn't enum key child %d\n", i));
NtClose( EnumKey );
ExFreePool( Kbio );
return Status;
}