Skip to content

Commit 4f701f9

Browse files
committed
menu: Fix bug where , Secure Boot) would be appended even for custom brandings
Fixes #550.
1 parent bb59e40 commit 4f701f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/menu.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,12 +1114,14 @@ noreturn void _menu(bool first_run) {
11141114
interface_help_colour_bright[3] = interface_help_colour_str[0];
11151115
}
11161116

1117+
bool custom_branding = false;
11171118
{
11181119
char *tmp = config_get_value(NULL, 0, "INTERFACE_BRANDING");
11191120
if (tmp != NULL) {
11201121
size_t len = strlen(tmp) + 1;
11211122
menu_branding = ext_mem_alloc(len);
11221123
memcpy(menu_branding, tmp, len);
1124+
custom_branding = true;
11231125
}
11241126
}
11251127
if (menu_branding == NULL) {
@@ -1158,7 +1160,7 @@ noreturn void _menu(bool first_run) {
11581160
#endif
11591161
}
11601162

1161-
if (secure_boot_active) {
1163+
if (secure_boot_active && !custom_branding) {
11621164
const char *suffix = ", Secure Boot)";
11631165
size_t suffix_len = strlen(suffix) + 1;
11641166
size_t old_len = strlen(menu_branding);

0 commit comments

Comments
 (0)