From: Brendan Shanks bshanks@codeweavers.com
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57019 --- dlls/ntdll/unix/system.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index e9ed8b6f3a4..13f37ee8a9a 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -2059,7 +2059,16 @@ static struct smbios_prologue *create_smbios_data(void) struct smbios_buffer buf = { 0 }; struct smbios_prologue *ret;
- if ((ret = get_smbios_from_iokit())) return ret; + ret = get_smbios_from_iokit(); + if (ret) + { + /* wineboot requires SMBIOS 2.5 or higher tables. */ + if ((ret->major_version >= 3) || + (ret->major_version == 2 && ret->minor_version >= 5)) + return ret; + else + free(ret); + }
/* Apple Silicon Macs don't have SMBIOS, we need to generate it. * Use strings and data from IOKit when available.