]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/PlatformDxe/Platform.c
NetworkPkg/Tls: Fix few typos
[mirror_edk2.git] / OvmfPkg / PlatformDxe / Platform.c
index 4ec327e763f65ec18346f9dace2e9745c9f01155..23ad43901f66cfd9c53da70901683751be08d378 100644 (file)
@@ -5,13 +5,7 @@
   Copyright (C) 2014, Red Hat, Inc.\r
   Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
 \r
-  This program and the accompanying materials are licensed and made available\r
-  under the terms and conditions of the BSD License which accompanies this\r
-  distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
-  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
 \r
 #include <Library/BaseLib.h>\r
@@ -492,7 +486,7 @@ STATIC
 EFI_STATUS\r
 EFIAPI\r
 CreateResolutionOptions (\r
-  IN  EFI_HII_HANDLE  *PackageList,\r
+  IN  EFI_HII_HANDLE  PackageList,\r
   OUT VOID            **OpCodeBuffer,\r
   IN  UINTN           NumGopModes,\r
   IN  GOP_MODE        *GopModes\r
@@ -553,7 +547,7 @@ STATIC
 EFI_STATUS\r
 EFIAPI\r
 PopulateForm (\r
-  IN  EFI_HII_HANDLE  *PackageList,\r
+  IN  EFI_HII_HANDLE  PackageList,\r
   IN  EFI_GUID        *FormSetGuid,\r
   IN  EFI_FORM_ID     FormId,\r
   IN  UINTN           NumGopModes,\r
@@ -663,6 +657,7 @@ ExecutePlatformConfig (
   EFI_STATUS      Status;\r
   PLATFORM_CONFIG PlatformConfig;\r
   UINT64          OptionalElements;\r
+  RETURN_STATUS   PcdStatus;\r
 \r
   Status = PlatformConfigLoad (&PlatformConfig, &OptionalElements);\r
   if (EFI_ERROR (Status)) {\r
@@ -675,10 +670,13 @@ ExecutePlatformConfig (
     //\r
     // Pass the preferred resolution to GraphicsConsoleDxe via dynamic PCDs.\r
     //\r
-    PcdSet32 (PcdVideoHorizontalResolution,\r
+    PcdStatus = PcdSet32S (PcdVideoHorizontalResolution,\r
       PlatformConfig.HorizontalResolution);\r
-    PcdSet32 (PcdVideoVerticalResolution,\r
+    ASSERT_RETURN_ERROR (PcdStatus);\r
+\r
+    PcdStatus = PcdSet32S (PcdVideoVerticalResolution,\r
       PlatformConfig.VerticalResolution);\r
+    ASSERT_RETURN_ERROR (PcdStatus);\r
   }\r
 \r
   return EFI_SUCCESS;\r