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
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
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
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
//\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