summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/PlatformDxe/Platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/PlatformDxe/Platform.c')
-rw-r--r--OvmfPkg/PlatformDxe/Platform.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/OvmfPkg/PlatformDxe/Platform.c b/OvmfPkg/PlatformDxe/Platform.c
index 4ec327e763..126d8e7382 100644
--- a/OvmfPkg/PlatformDxe/Platform.c
+++ b/OvmfPkg/PlatformDxe/Platform.c
@@ -663,6 +663,7 @@ ExecutePlatformConfig (
EFI_STATUS Status;
PLATFORM_CONFIG PlatformConfig;
UINT64 OptionalElements;
+ RETURN_STATUS PcdStatus;
Status = PlatformConfigLoad (&PlatformConfig, &OptionalElements);
if (EFI_ERROR (Status)) {
@@ -675,10 +676,13 @@ ExecutePlatformConfig (
//
// Pass the preferred resolution to GraphicsConsoleDxe via dynamic PCDs.
//
- PcdSet32 (PcdVideoHorizontalResolution,
+ PcdStatus = PcdSet32S (PcdVideoHorizontalResolution,
PlatformConfig.HorizontalResolution);
- PcdSet32 (PcdVideoVerticalResolution,
+ ASSERT_RETURN_ERROR (PcdStatus);
+
+ PcdStatus = PcdSet32S (PcdVideoVerticalResolution,
PlatformConfig.VerticalResolution);
+ ASSERT_RETURN_ERROR (PcdStatus);
}
return EFI_SUCCESS;