Skip to content

Commit

Permalink
OvmfPkg/SmbiosPlatformDxe: tweak fallback release date
Browse files Browse the repository at this point in the history
In case PcdFirmwareReleaseDateString is not set use a valid date
as fallback.  Using "unknown" makes Windows unhappy.

Fixes: 4cb94f2 ("OvmfPkg/SmbiosPlatformDxe: use PcdFirmware*")
Reported-by: [email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
  • Loading branch information
kraxel authored and mergify[bot] committed Mar 9, 2023
1 parent 2fccd1f commit a0f9628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit a0f9628

Please sign in to comment.