Bios (macOS): fix compiling error on Apple Slicon

This commit is contained in:
李通洲
2023-07-03 15:31:33 +08:00
parent e7474bda1f
commit ebbadbed4f
3 changed files with 8 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ void ffDetectBios(FFBiosResult* bios)
if(IORegistryEntryCreateCFProperties(registryEntry, &properties, kCFAllocatorDefault, kNilOptions) == kIOReturnSuccess)
{
ffCfDictGetString(properties, CFSTR("manufacturer"), &bios->biosVendor);
ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->date);
ffCfDictGetString(properties, CFSTR("time-stamp"), &bios->biosDate);
CFRelease(properties);
}
IOObjectRelease(registryEntry);