]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/BootMaintenanceManagerLib/Variable.c
MdeModulePkg:Change the type of BootNext
[mirror_edk2.git] / MdeModulePkg / Library / BootMaintenanceManagerLib / Variable.c
index cd2da4a905c4392c06a0959d531d8a693f3c630a..a276caed05c4f3a76a87e0d29356ed3349ca5f77 100644 (file)
@@ -868,7 +868,7 @@ Var_UpdateBootNext (
     NewLoadContext->IsBootNext  = FALSE;\r
   }\r
 \r
-  if (CurrentFakeNVMap->BootNext == BootOptionMenu.MenuNumber) {\r
+  if (CurrentFakeNVMap->BootNext == NONE_BOOTNEXT_VALUE) {\r
     EfiLibDeleteVariable (L"BootNext", &gEfiGlobalVariableGuid);\r
     return EFI_SUCCESS;\r
   }\r