mirror of https://github.com/acidanthera/audk.git
For UNI file, some String may not be defined for a language. This has been true for a lot of platform code. For this case, EFI_NOT_FOUND will be returned. To allow the old code to be run without porting, we don't assert on EFI_NOT_FOUND. The missing String will be declared if user select differnt languages for the platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5149 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
714e8111b7
commit
46b5ebc877
|
@ -133,6 +133,7 @@ HiiThunkNewStringForAllStringPackages (
|
||||||
*Reference = StringId1;
|
*Reference = StringId1;
|
||||||
Status = EFI_SUCCESS;
|
Status = EFI_SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
|
ASSERT (FALSE);
|
||||||
Status = EFI_NOT_FOUND;
|
Status = EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -173,9 +174,14 @@ Returns:
|
||||||
ASSERT_EFI_ERROR (Status);
|
ASSERT_EFI_ERROR (Status);
|
||||||
|
|
||||||
Status = HiiThunkNewStringForAllStringPackages (Private, &TagGuid, Language, Reference, NewString);
|
Status = HiiThunkNewStringForAllStringPackages (Private, &TagGuid, Language, Reference, NewString);
|
||||||
ASSERT_EFI_ERROR (Status);
|
//
|
||||||
|
// For UNI file, some String may not be defined for a language. This has been true for a lot of platform code.
|
||||||
|
// For this case, EFI_NOT_FOUND will be returned. To allow the old code to be run without porting, we don't assert
|
||||||
|
// on EFI_NOT_FOUND. The missing String will be declared if user select differnt languages for the platform.
|
||||||
|
//
|
||||||
|
ASSERT_EFI_ERROR (EFI_ERROR (Status) && Status != EFI_NOT_FOUND);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
|
Loading…
Reference in New Issue