]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootOption.c
ArmPlatformPkg/Bds: Fixed condition on LOAD_OPTION_CATEGORY_BOOT
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootOption.c
index aa8be74bc9b6376b5cfa97d4b5c86c4812d82317..8ed636b53bbbd744d7628e34f70ca86396bcb3e2 100644 (file)
@@ -39,7 +39,7 @@ BootOptionStart (
     LoaderType = ReadUnaligned32 ((CONST UINT32*)&OptionalData->Header.LoaderType);\r
 \r
     if (LoaderType == BDS_LOADER_EFI_APPLICATION) {\r
-      if ((BootOption->Attributes & LOAD_OPTION_CATEGORY_BOOT) == 0) {\r
+      if ((BootOption->Attributes & LOAD_OPTION_CATEGORY) == LOAD_OPTION_CATEGORY_APP) {\r
         // Need to connect every drivers to ensure no dependencies are missing for the application\r
         BdsConnectAllDrivers ();\r
       }\r
@@ -91,7 +91,7 @@ BootOptionStart (
     }\r
   } else {\r
     // Connect all the drivers if the EFI Application is not a EFI OS Loader\r
-    if ((BootOption->Attributes & LOAD_OPTION_CATEGORY_BOOT) == 0) {\r
+    if ((BootOption->Attributes & LOAD_OPTION_CATEGORY) == LOAD_OPTION_CATEGORY_APP) {\r
       BdsConnectAllDrivers ();\r
     }\r
 \r