From 8a7950d99a3dc14eacd1baade7e52733e0f8b6db Mon Sep 17 00:00:00 2001 From: jief Date: Wed, 11 Mar 2020 19:41:20 +0300 Subject: [PATCH] Allow NULL title in NewEntry_. --- rEFIt_UEFI/refit/menu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rEFIt_UEFI/refit/menu.cpp b/rEFIt_UEFI/refit/menu.cpp index 6ee4ddd03..7ae5e0ebb 100644 --- a/rEFIt_UEFI/refit/menu.cpp +++ b/rEFIt_UEFI/refit/menu.cpp @@ -4358,7 +4358,8 @@ UINTN REFIT_MENU_SCREEN::RunMenu(OUT REFIT_ABSTRACT_MENU_ENTRY **ChosenEntry) REFIT_ABSTRACT_MENU_ENTRY* NewEntry_(REFIT_ABSTRACT_MENU_ENTRY *Entry, REFIT_MENU_SCREEN **SubScreen, ACTION AtClick, UINTN ID, CONST CHAR8 *Title) { - Entry->Title.takeValueFrom(Title); + if ( Title ) Entry->Title.takeValueFrom(Title); + else Entry->Title.setEmpty(); // if (Title) { // } else { // Entry->Title = (__typeof__(Entry->Title))AllocateZeroPool(128);