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:
@ -102,7 +102,10 @@ CheckAndSetDate (
|
|||||||
}
|
}
|
||||||
|
|
||||||
Status = gRT->GetTime(&TheTime, NULL);
|
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 = NULL;
|
||||||
DateStringCopy = StrnCatGrow(&DateStringCopy, NULL, DateString, 0);
|
DateStringCopy = StrnCatGrow(&DateStringCopy, NULL, DateString, 0);
|
||||||
|
Reference in New Issue
Block a user