Module: wine Branch: master Commit: ce386a870b2328ccb7536e683efd32c4c12f02e6 URL: https://gitlab.winehq.org/wine/wine/-/commit/ce386a870b2328ccb7536e683efd32c... Author: Brendan Shanks <bshanks(a)codeweavers.com> Date: Wed Nov 9 14:00:55 2022 -0800 winemac.drv: Stop using deprecated kIOMasterPortDefault constant. --- dlls/winemac.drv/cocoa_display.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winemac.drv/cocoa_display.m b/dlls/winemac.drv/cocoa_display.m index f64a6c0f6ad..04f6dda4481 100644 --- a/dlls/winemac.drv/cocoa_display.m +++ b/dlls/winemac.drv/cocoa_display.m @@ -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;