summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 23:28:40 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:15:01 +0800
commit534c4ad39c9a8693ea69989fee98e0e99a23433b (patch)
treedf3aa46f11672feff27df3a17479db862075e05d
parent29d8cf6c6253ca05db0b977e7b34de764bd981af (diff)
downloadedk2-platforms-534c4ad39c9a8693ea69989fee98e0e99a23433b.tar.xz
MinPlatformPkg/DxePlatformBootManagerLib: Add missing ASSERTs.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
index 8fd31df876..0e2fed1f72 100644
--- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
+++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
@@ -979,8 +979,12 @@ ChangeModeForInternalShell (
//
// Update text mode PCD.
//
- PcdSet32S (PcdConOutColumn, mShellModeColumn);
- PcdSet32S (PcdConOutRow, mShellModeRow);
+ Status = PcdSet32S (PcdConOutColumn, mShellModeColumn);
+ ASSERT_EFI_ERROR (Status);
+
+ Status = PcdSet32S (PcdConOutRow, mShellModeRow);
+ ASSERT_EFI_ERROR (Status);
+
FreePool (Info);
return EFI_SUCCESS;
}
@@ -1006,10 +1010,17 @@ ChangeModeForInternalShell (
// Set PCD to restart GraphicsConsole and Consplitter to change video resolution
// and produce new text mode based on new resolution.
//
- PcdSet32S (PcdVideoHorizontalResolution, mShellHorizontalResolution);
- PcdSet32S (PcdVideoVerticalResolution, mShellVerticalResolution);
- PcdSet32S (PcdConOutColumn, mShellModeColumn);
- PcdSet32S (PcdConOutRow, mShellModeRow);
+ Status = PcdSet32S (PcdVideoHorizontalResolution, mShellHorizontalResolution);
+ ASSERT_EFI_ERROR (Status);
+
+ Status = PcdSet32S (PcdVideoVerticalResolution, mShellVerticalResolution);
+ ASSERT_EFI_ERROR (Status);
+
+ Status = PcdSet32S (PcdConOutColumn, mShellModeColumn);
+ ASSERT_EFI_ERROR (Status);
+
+ Status = PcdSet32S (PcdConOutRow, mShellModeRow);
+ ASSERT_EFI_ERROR (Status);
Status = gBS->LocateHandleBuffer (
ByProtocol,