mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-20 16:08:37 +02:00
Platform: Darwin: Replace deprecate kIOMasterPortDefault with kIOMainPortDefault
This commit is contained in:
@@ -86,7 +86,7 @@ void CDCACM::Find(std::vector<FoundDevice>& found) {
|
||||
if(ref == nullptr)
|
||||
return;
|
||||
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)
|
||||
return;
|
||||
IOReleaser matchingServicesReleaser(matchingServices);
|
||||
|
||||
Reference in New Issue
Block a user