OpenCorePlatform: Allow for NULL product names in config
@@ -354,8 +354,10 @@ OcPlatformUpdateSmbios (
}
}
+ if (Data.SystemProductName != NULL) {
DEBUG ((DEBUG_INFO, "OC: New SMBIOS: %a model %a\n", Data.SystemManufacturer, Data.SystemProductName));
mCurrentSmbiosProductName = Data.SystemProductName;
+ }
Status = OcSmbiosCreate (SmbiosTable, &Data, UpdateMode, CpuInfo);
if (EFI_ERROR (Status)) {
