Limit number of boot menu entries to match box size, this usually should be enough to display all entries
Все проверки выполнены успешно
Builds / ExectOS (amd64) (push) Successful in 28s
Builds / ExectOS (i686) (push) Successful in 28s

Этот коммит содержится в:
Rafal Kupiec 2024-01-01 22:24:45 +01:00
родитель e618f112b5
Коммит 46253c0503
Подписано: belliash
Идентификатор ключа GPG: 4E829243E0CFE6B4

Просмотреть файл

@ -59,6 +59,13 @@ BlDisplayBootMenu()
/* Check if there is anything to show in the boot menu */
if(NumberOfEntries > 0) {
/* Check if all menu entries will fit into the menu box */
if(NumberOfEntries > Handle.Height - 2)
{
/* Too many menu entries, limit entries to match box height (-2 for upper and bottom borders) */
NumberOfEntries = Handle.Height - 2;
}
/* Iterate through all menu entries */
for(Index = 0; Index < NumberOfEntries; Index++)
{