]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Update behavior for GetTime() errors.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 May 2013 16:18:58 +0000 (16:18 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 9 May 2013 16:18:58 +0000 (16:18 +0000)
commit391206e7754ebe3c32e9d19d7a62ba3bbe43df6a
tree1df1abcb75d37f134f5840fd242e4f8fde3681c0
parent224e8e2f47174301ff4b8b88cc96297027e700fe
ShellPkg: Update behavior for GetTime() errors.

Please find the attached patch that fixes the ShellPkg when gRT->GetTime() returns an error (eg: early UEFI platform bringup with a RTC controller that is not supported).
On some platforms, gRT->GetTime() might not return EFI_SUCCESS. The Shell must check the return status before to assume the returned time is valid.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <Olivier.Martin@arm.com>
Reviewed-by: Jaben Carsey <Jaben.Carsey@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14337 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellLevel2CommandsLib/TimeDate.c
ShellPkg/Library/UefiShellLevel3CommandsLib/Touch.c