UseEfiSocketLib.c - Only exit for out of resources, otherwise use all network adapters.
Service.c - Return EFI_SUCCESS if any of the protocols are present. Return failure only when no protocols are available or no more memory available. Signed-off-by: lpleahy Reviewed-by: vzimmer git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13426 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -196,10 +196,17 @@ EslServiceNetworkConnect (
|
||||
for ( Index = 0; HandleCount > Index; Index++ ) {
|
||||
Status = EslServiceConnect ( gImageHandle,
|
||||
pHandles[ Index ]);
|
||||
if ( EFI_ERROR ( Status )) {
|
||||
break;
|
||||
if ( !EFI_ERROR ( Status )) {
|
||||
bSomethingFound = TRUE;
|
||||
}
|
||||
else {
|
||||
if ( EFI_OUT_OF_RESOURCES == Status ) {
|
||||
//
|
||||
// Pointless to continue without memory
|
||||
//
|
||||
break;
|
||||
}
|
||||
}
|
||||
bSomethingFound = TRUE;
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user