summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2023-03-09 10:02:07 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-09 09:45:39 +0000
commita0f9628705e35c981ae95376f9ebedf877d09111 (patch)
tree463021d846f4f06e9ff468655bbcd685c7e9c2cd /OvmfPkg
parent2fccd1f153e1b7146d6fe9d9f8cfaeabdf636c44 (diff)
downloadedk2-a0f9628705e35c981ae95376f9ebedf877d09111.tar.gz
edk2-a0f9628705e35c981ae95376f9ebedf877d09111.tar.bz2
edk2-a0f9628705e35c981ae95376f9ebedf877d09111.zip
OvmfPkg/SmbiosPlatformDxe: tweak fallback release date
In case PcdFirmwareReleaseDateString is not set use a valid date as fallback. Using "unknown" makes Windows unhappy. Fixes: 4cb94f20b002 ("OvmfPkg/SmbiosPlatformDxe: use PcdFirmware*") Reported-by: ruifeng.gao@intel.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
index dc1e6aed63..0ca3776045 100644
--- a/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
+++ b/OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
@@ -160,7 +160,7 @@ InstallAllStructures (
DateStr = (CHAR16 *)FixedPcdGetPtr (PcdFirmwareReleaseDateString);
DateLen = StrLen (DateStr);
if (DateLen < 3) {
- DateStr = L"unknown";
+ DateStr = L"2/2/2022";
DateLen = StrLen (DateStr);
}