mirror of https://github.com/acidanthera/audk.git
replace assert with error.
signed-off-by: jcarsey reviewed-by: lgrosenb git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11897 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
03131de30e
commit
35f26e73cc
|
@ -102,7 +102,10 @@ CheckAndSetDate (
|
|||
}
|
||||
|
||||
Status = gRT->GetTime(&TheTime, NULL);
|
||||
ASSERT_EFI_ERROR(Status);
|
||||
if (EFI_ERROR(Status)) {
|
||||
ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_UEFI_FUNC_WARN), gShellLevel2HiiHandle, L"gRT->GetTime", Status);
|
||||
return (SHELL_DEVICE_ERROR);
|
||||
}
|
||||
|
||||
DateStringCopy = NULL;
|
||||
DateStringCopy = StrnCatGrow(&DateStringCopy, NULL, DateString, 0);
|
||||
|
|
Loading…
Reference in New Issue