Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fallback: find_boot_option() needs to return the index for the boot e…
…ntry in optnum The CopyMem() calls in add_to_boot_list() expect that find_boot_option() returned an index to the matching entry in the BootOrder array. The previous code returned the numerical portion of the boot entry label, which in some cases resulted in -1 * sizeof(CHAR16) being passed to CopyMem() which would in turn corrupt the running firmware resulting in an exception and a failure to boot or reset.
- Loading branch information