Commit ce386a87 authored by Brendan Shanks's avatar Brendan Shanks Committed by Alexandre Julliard

winemac.drv: Stop using deprecated kIOMasterPortDefault constant.

parent 15cbe497
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment