summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-01-28 02:41:35 +0100
committerGravatar Nikias Bassen2019-01-28 02:41:35 +0100
commit8a7f0e58921b82fe3ca82f47d4c04301803e1ecf (patch)
treeca9079e046ea797a341e1792be7a076f5207a04a /src
parent26692e12fc929c9e7572719825b24b5fe375570d (diff)
downloadlibirecovery-8a7f0e58921b82fe3ca82f47d4c04301803e1ecf.tar.gz
libirecovery-8a7f0e58921b82fe3ca82f47d4c04301803e1ecf.tar.bz2
macOS: Make sure to select correct version of IOUSBDeviceInterface and IOUSBInterfaceInterface
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index c13572e..6e553eb 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -1027,7 +1027,7 @@ static irecv_error_t iokit_usb_open_service(irecv_client_t *pclient, io_service_
IOObjectRelease(service);
// Create the device interface
- result = (*plug)->QueryInterface(plug, CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID *)&(client->handle));
+ result = (*plug)->QueryInterface(plug, CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID320), (LPVOID *)&(client->handle));
IODestroyPlugInInterface(plug);
if (result != kIOReturnSuccess) {
free(client);
@@ -1412,7 +1412,7 @@ static irecv_error_t iokit_usb_set_interface(irecv_client_t client, int usb_inte
return IRECV_E_USB_INTERFACE;
}
- result = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID)&client->usbInterface);
+ result = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID300), (LPVOID)&client->usbInterface);
IODestroyPlugInInterface(plugInInterface);
if (result != kIOReturnSuccess) {
debug("error creating interface interface: %#x\n", result);