aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorWrathofthePast <[email protected]>2022-02-16 17:21:29 -0500
committerWrathofthePast <[email protected]>2022-02-16 17:21:29 -0500
commit12edcab514aafd6ac39696993efd757e8e2291d1 (patch)
tree612f2180ee3f8022460e94f1fc9fb7bf41ac082b /src/lib
parenta0d55638d16c49505ecb123ee098b78ac58d41fd (diff)
downloadlibrazermacos-12edcab514aafd6ac39696993efd757e8e2291d1.tar.xz
librazermacos-12edcab514aafd6ac39696993efd757e8e2291d1.zip
Update razerdevice.c
Diffstat (limited to 'src/lib')
-rwxr-xr-xsrc/lib/razerdevice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/razerdevice.c b/src/lib/razerdevice.c
index 3933b13..4d5d1ef 100755
--- a/src/lib/razerdevice.c
+++ b/src/lib/razerdevice.c
@@ -238,7 +238,7 @@ IOUSBDeviceInterface **getRazerUSBDeviceInterface(int type)
io_iterator_t iter;
kern_return_t kReturn =
- IOServiceGetMatchingServices(kIOMainPortDefault, matchingDict, &iter);
+ IOServiceGetMatchingServices(MACH_PORT_NULL, matchingDict, &iter);
if (kReturn != kIOReturnSuccess)
{
return NULL;
@@ -384,7 +384,7 @@ RazerDevices getAllRazerDevices()
io_iterator_t iter;
kern_return_t kReturn =
- IOServiceGetMatchingServices(kIOMainPortDefault, matchingDict, &iter);
+ IOServiceGetMatchingServices(MACH_PORT_NULL, matchingDict, &iter);
if (kReturn != kIOReturnSuccess)
{
return allDevices;