mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:39:34 +00:00
winemac.drv: Stop using deprecated kIOMasterPortDefault constant.
This commit is contained in:
parent
15cbe49798
commit
ce386a870b
|
@ -250,7 +250,7 @@ static int macdrv_get_gpu_info_from_registry_id(struct macdrv_gpu* gpu, uint64_t
|
|||
int ret;
|
||||
io_registry_entry_t entry;
|
||||
|
||||
entry = IOServiceGetMatchingService(kIOMasterPortDefault, IORegistryEntryIDMatching(registry_id));
|
||||
entry = IOServiceGetMatchingService(0, IORegistryEntryIDMatching(registry_id));
|
||||
ret = macdrv_get_gpu_info_from_entry(gpu, entry);
|
||||
IOObjectRelease(entry);
|
||||
return ret;
|
||||
|
@ -422,7 +422,7 @@ static int macdrv_get_gpus_from_iokit(struct macdrv_gpu** new_gpus, int* count)
|
|||
if (!gpus)
|
||||
goto done;
|
||||
|
||||
if (IOServiceGetMatchingServices(kIOMasterPortDefault, IOServiceMatching("IOPCIDevice"), &iterator)
|
||||
if (IOServiceGetMatchingServices(0, IOServiceMatching("IOPCIDevice"), &iterator)
|
||||
!= kIOReturnSuccess)
|
||||
goto done;
|
||||
|
||||
|
|
Loading…
Reference in a new issue