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:
lpleahy
2012-06-01 20:01:30 +00:00
parent 75ccc2b211
commit 441f48f5b0
2 changed files with 20 additions and 28 deletions

View File

@ -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;
}
//