mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 15:45:05 -04:00
Use NULL (shared) libusb context
This commit is contained in:
1 parent
0da484bffc
commit
f06b0ee952
2 files changed
+5
-8
No files matched your search
@@ -28,19 +28,17 @@
|
||||
|
||||
void DetectLianLiUniHub(std::vector<RGBController*>&)
|
||||
{
|
||||
libusb_context * ctx;
|
||||
|
||||
libusb_device** devices = nullptr;
|
||||
|
||||
int ret;
|
||||
|
||||
ret = libusb_init(&ctx);
|
||||
ret = libusb_init(NULL);
|
||||
if(ret < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
ret = libusb_get_device_list(ctx, &devices);
|
||||
ret = libusb_get_device_list(NULL, &devices);
|
||||
if(ret < 0)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user