diff options
| author | 2019-01-28 02:41:35 +0100 | |
|---|---|---|
| committer | 2019-01-28 02:41:35 +0100 | |
| commit | 8a7f0e58921b82fe3ca82f47d4c04301803e1ecf (patch) | |
| tree | ca9079e046ea797a341e1792be7a076f5207a04a /src/libirecovery.c | |
| parent | 26692e12fc929c9e7572719825b24b5fe375570d (diff) | |
| download | libirecovery-8a7f0e58921b82fe3ca82f47d4c04301803e1ecf.tar.gz libirecovery-8a7f0e58921b82fe3ca82f47d4c04301803e1ecf.tar.bz2 | |
macOS: Make sure to select correct version of IOUSBDeviceInterface and IOUSBInterfaceInterface
Diffstat (limited to 'src/libirecovery.c')
| -rw-r--r-- | src/libirecovery.c | 4 |
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_ | |||
| 1027 | IOObjectRelease(service); | 1027 | IOObjectRelease(service); |
| 1028 | 1028 | ||
| 1029 | // Create the device interface | 1029 | // Create the device interface |
| 1030 | result = (*plug)->QueryInterface(plug, CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID), (LPVOID *)&(client->handle)); | 1030 | result = (*plug)->QueryInterface(plug, CFUUIDGetUUIDBytes(kIOUSBDeviceInterfaceID320), (LPVOID *)&(client->handle)); |
| 1031 | IODestroyPlugInInterface(plug); | 1031 | IODestroyPlugInInterface(plug); |
| 1032 | if (result != kIOReturnSuccess) { | 1032 | if (result != kIOReturnSuccess) { |
| 1033 | free(client); | 1033 | free(client); |
| @@ -1412,7 +1412,7 @@ static irecv_error_t iokit_usb_set_interface(irecv_client_t client, int usb_inte | |||
| 1412 | return IRECV_E_USB_INTERFACE; | 1412 | return IRECV_E_USB_INTERFACE; |
| 1413 | } | 1413 | } |
| 1414 | 1414 | ||
| 1415 | result = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID), (LPVOID)&client->usbInterface); | 1415 | result = (*plugInInterface)->QueryInterface(plugInInterface, CFUUIDGetUUIDBytes(kIOUSBInterfaceInterfaceID300), (LPVOID)&client->usbInterface); |
| 1416 | IODestroyPlugInInterface(plugInInterface); | 1416 | IODestroyPlugInInterface(plugInInterface); |
| 1417 | if (result != kIOReturnSuccess) { | 1417 | if (result != kIOReturnSuccess) { |
| 1418 | debug("error creating interface interface: %#x\n", result); | 1418 | debug("error creating interface interface: %#x\n", result); |
