社会主义加班人

Results 3 comments of 社会主义加班人

Hi,sir. I found a little error about nullptr in https://github.com/DJm00n/hidapi/blob/device_notify/windows/hid.c#L1036 ![before change](https://user-images.githubusercontent.com/30239482/147877780-79c574e0-5f6f-44e0-9d5b-47ec8b5f4ff3.png) ![after change](https://user-images.githubusercontent.com/30239482/147877783-1c054683-85c9-4f92-ad21-54cfffc5987f.png)

I noticed, the plugged devices before my testing program startup also can be callback. I think, hotplug just processes the hot plug events, but not existed devices.

yes. registe callback like this will not receive existed devices: `hid_hotplug_register_callback(0, 0, HID_API_HOTPLUG_EVENT_DEVICE_ARRIVED| HID_API_HOTPLUG_EVENT_DEVICE_LEFT, 0/*HID_API_HOTPLUG_ENUMERATE*/, hotplug_callback, this, &hotplug_handle);`