aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMattiwatti <mattiwatti@gmail.com>2019-07-09 22:02:57 +0200
committerMattiwatti <mattiwatti@gmail.com>2019-07-09 22:02:57 +0200
commitf9270cfb3897ec68f36c5d032127aa59587356bd (patch)
tree09db19fc30adcea8d9d8b17e00e18638c1f21cce /README.md
parent7702234474e8590db6b35ae540de9503e4e936c7 (diff)
Fix potential recursive self-boot by Loader.efi
The EFI variable "BootCurrent" corresponds to XXXX in some variable "BootXXXX", and this value was being used to guard against recursive self-booting. However, EfiBootManagerGetLoadOptions() already returns the options sorted by the contents of the "BootOrder" variable, which means that XXXX does not necessarily correspond to the linear index in a for loop. Instead use BootOptions[Index].OptionNumber to retrieve and compare the original value of XXXX Fixes #5
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions