Add fallback for unknown CONFIG_BIOS names

This commit is contained in:
RichardG867
2025-10-25 16:56:15 -03:00
parent 3fdf56513f
commit d1f101f9ee
3 changed files with 38 additions and 112 deletions

View File

@@ -20319,7 +20319,7 @@ machine_get_nvr_name_ex(int m)
if (dev != NULL) {
device_context(dev);
const char *bios = device_get_config_string("bios");
const char *bios = device_get_config_bios("bios");
if ((bios != NULL) && (strcmp(bios, "") != 0))
ret = bios;
device_context_restore();