]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/BdsDxe/BdsEntry.c
MdeModulePkg/BdsDxe: Fix spelling mistake
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / BdsEntry.c
index d6ec31118c1ffd87e37fb0a6430a98b97ddbd1c4..83b773a2fa5f75343017c7f841b11df41b75f1a9 100644 (file)
@@ -6,7 +6,7 @@
   to enter BDS phase.\r
 \r
 Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
-(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>\r
+(C) Copyright 2016-2019 Hewlett Packard Enterprise Development LP<BR>\r
 (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -785,7 +785,7 @@ BdsEntry (
 \r
   FilePath = FileDevicePath (NULL, EFI_REMOVABLE_MEDIA_FILE_NAME);\r
   if (FilePath == NULL) {\r
-    DEBUG ((DEBUG_ERROR, "Fail to allocate memory for defualt boot file path. Unable to boot.\n"));\r
+    DEBUG ((DEBUG_ERROR, "Fail to allocate memory for default boot file path. Unable to boot.\n"));\r
     CpuDeadLoop ();\r
   }\r
   Status = EfiBootManagerInitializeLoadOption (\r
@@ -1069,7 +1069,7 @@ BdsEntry (
   }\r
 \r
   if (!BootSuccess) {\r
-    if (PlatformRecovery) {\r
+    if (PcdGetBool (PcdPlatformRecoverySupport)) {\r
       LoadOptions = EfiBootManagerGetLoadOptions (&LoadOptionCount, LoadOptionTypePlatformRecovery);\r
       ProcessLoadOptions (LoadOptions, LoadOptionCount);\r
       EfiBootManagerFreeLoadOptions (LoadOptions, LoadOptionCount);\r