]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BootMenu.c
ArmPlatformPkg: Removed the global ImageHandle when UefiBootServicesTableLib is included
[mirror_edk2.git] / ArmPlatformPkg / Bds / BootMenu.c
index b96a1c3f923cc30a69e82974a0e44b526f7af839..42212385a860fcd13e6714a8b613fe705aa230e9 100644 (file)
@@ -16,7 +16,6 @@
 \r
 #include <Guid/ArmGlobalVariableHob.h>\r
 \r
-extern EFI_HANDLE mImageHandle;\r
 extern BDS_LOAD_OPTION_SUPPORT *BdsLoadOptionSupportList;\r
 \r
 /**\r
@@ -954,7 +953,7 @@ BootShell (
   EFI_STATUS Status;\r
 \r
   // Start EFI Shell\r
-  Status = BdsLoadApplication (mImageHandle, L"Shell", 0, NULL);\r
+  Status = BdsLoadApplication (gImageHandle, L"Shell", 0, NULL);\r
   if (Status == EFI_NOT_FOUND) {\r
     Print (L"Error: EFI Application not found.\n");\r
   } else if (EFI_ERROR(Status)) {\r