diff options
Diffstat (limited to 'Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c')
-rw-r--r-- | Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c b/Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c index 6df4d86426..9ed9bfd38c 100644 --- a/Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c +++ b/Nt32Pkg/PlatformBdsDxe/Generic/FrontPage.c @@ -343,10 +343,11 @@ ReInitStrings: BufferSize = 0;
Status = gHii->GetString (gHii, gStringPackHandle, 1, TRUE, Lang, &BufferSize, NULL);
- ASSERT(Status == EFI_BUFFER_TOO_SMALL);
+ ASSERT (Status == EFI_BUFFER_TOO_SMALL);
StringBuffer = AllocateZeroPool (BufferSize);
ASSERT (StringBuffer != NULL);
Status = gHii->GetString (gHii, gStringPackHandle, 1, TRUE, Lang, &BufferSize, StringBuffer);
+ ASSERT_EFI_ERROR (Status);
gHii->NewString (gHii, NULL, gStringPackHandle, &Token, StringBuffer);
FreePool (StringBuffer);
CopyMem (&OptionList[OptionCount].StringToken, &Token, sizeof (UINT16));
@@ -382,9 +383,7 @@ ReInitStrings: gHii->UpdateForm (gHii, gFrontPageHandle, (EFI_FORM_LABEL) 0x0002, TRUE, UpdateData);
FreePool (UpdateData);
- //
- // FreePool (OptionList);
- //
+ FreePool (OptionList);
return Status;
}
|