Skip to content

Commit d324ab7

Browse files
committed
Reference typos
1 parent f54d13a commit d324ab7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mac/hid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ static struct hid_device_info *create_device_info_with_usage(IOHIDDeviceRef dev,
671671

672672
/* A small trick to store an io_service_t tag along with hid_device_info for matching info with unplugged device */
673673
cur_dev_ex = (struct hid_device_info_ex *)calloc(1, sizeof(struct hid_device_info_ex));
674-
cur_dev = &cur_dev_ex.info;
674+
cur_dev = &(cur_dev_ex->info);
675675
if (cur_dev == NULL) {
676676
return NULL;
677677
}
@@ -999,7 +999,7 @@ int match_ref_to_info(IOHIDDeviceRef device, struct hid_device_info *info)
999999
struct hid_device_info_ex* ex = (struct hid_device_info_ex*)info;
10001000
io_service_t service = IOHIDDeviceGetService(device);
10011001

1002-
return (service == ex.service);
1002+
return (service == ex->service);
10031003
}
10041004

10051005
static void hid_internal_hotplug_disconnect_callback(void *context, IOReturn result, void *sender, IOHIDDeviceRef device)

0 commit comments

Comments
 (0)