Enhanced status return check.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7508 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2009-02-12 03:03:47 +00:00
parent e618d0cb67
commit 7c1bc8d656
1 changed files with 2 additions and 2 deletions

View File

@ -1321,7 +1321,7 @@ HiiConfigToBlock (
// Get Offset
//
Status = GetValueOfNumber (StringPtr, &TmpBuffer, &Length);
if (Status == EFI_OUT_OF_RESOURCES) {
if (EFI_ERROR (Status)) {
*Progress = ConfigResp;
goto Exit;
}
@ -1369,7 +1369,7 @@ HiiConfigToBlock (
// Get Value
//
Status = GetValueOfNumber (StringPtr, &Value, &Length);
if (Status == EFI_OUT_OF_RESOURCES) {
if (EFI_ERROR (Status)) {
*Progress = ConfigResp;
goto Exit;
}