TPM (macOS): fix compiling error on old system

Fix #1659
This commit is contained in:
李通洲 committed 2025-04-03 16:21:02 +08:00
1 parent f94d9ca3bd
commit f04851891e
1 file changed
+1 -1
+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) {