We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 053256c commit 5ea30caCopy full SHA for 5ea30ca
windows/hid.c
@@ -988,7 +988,7 @@ int HID_API_EXPORT HID_API_CALL hid_hotplug_deregister_callback(hid_hotplug_call
988
989
/* Remove this notification */
990
for (struct hid_hotplug_callback **current = &hid_hotplug_context.hotplug_cbs; *current; current = &(*current)->next) {
991
- if (hotplug_cb->handle == callback_handle) {
+ if ((*current)->handle == callback_handle) {
992
struct hid_hotplug_callback *next = (*current)->next;
993
hotplug_cb = *current;
994
*current = next;
0 commit comments