TPM (macOS): fix compiling error on old system

Fix #1659
This commit is contained in:
李通洲
2025-04-03 16:20:20 +08:00
parent f94d9ca3bd
commit f04851891e
+1 -1
View File
@@ -16,7 +16,7 @@ const char* ffDetectTPM(FFTPMResult* result)
#else
FF_IOOBJECT_AUTO_RELEASE io_service_t t2Service = IOServiceGetMatchingService(
kIOMainPortDefault,
MACH_PORT_NULL,
IOServiceMatching("AppleT2"));
if (t2Service) {