Platform: Darwin: Replace deprecate kIOMasterPortDefault with kIOMainPortDefault

This commit is contained in:
Max Brombach
2026-08-27 18:33:01 +00:00
parent 07e4eca14a
commit cf58f819cb
+1 -1
View File
@@ -86,7 +86,7 @@ void CDCACM::Find(std::vector<FoundDevice>& found) {
if(ref == nullptr) if(ref == nullptr)
return; return;
io_iterator_t matchingServices = 0; io_iterator_t matchingServices = 0;
kern_return_t kernResult = IOServiceGetMatchingServices(kIOMasterPortDefault, ref, &matchingServices); kern_return_t kernResult = IOServiceGetMatchingServices(kIOMainPortDefault, ref, &matchingServices);
if(KERN_SUCCESS != kernResult || matchingServices == 0) if(KERN_SUCCESS != kernResult || matchingServices == 0)
return; return;
IOReleaser matchingServicesReleaser(matchingServices); IOReleaser matchingServicesReleaser(matchingServices);