]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.c
ShellPkg/UefiShellBcfgCommandLib: Fix '-opt' option
[mirror_edk2.git] / ShellPkg / Library / UefiShellBcfgCommandLib / UefiShellBcfgCommandLib.c
index d033c7c1dc59fecc3770b676027c8b9fd39f42d9..e8b48b4990ddb6ce7eeb78a3c3325d03dc0ed3e6 100644 (file)
@@ -1019,7 +1019,7 @@ BcfgAddOpt(
   //\r
   // Get the index of the variable we are changing.\r
   //\r
-  Status = ShellConvertStringToUint64(Walker, &Intermediate, FALSE, TRUE);\r
+  Status = ShellConvertStringToUint64(Walker, &Intermediate, TRUE, TRUE);\r
   if (EFI_ERROR(Status) || (((UINT16)Intermediate) != Intermediate) || StrStr(Walker, L" ") == NULL || ((UINT16)Intermediate) > ((UINT16)OrderCount)) {\r
     ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN (STR_GEN_PARAM_INV), gShellBcfgHiiHandle, L"bcfg", L"Option Index");\r
     ShellStatus = SHELL_INVALID_PARAMETER;\r