Commit 6fbb050a380e32bb2400fc84b6e9349b642ffd1c

Authored by achemin1
1 parent a0c7823d

correction, modification après déréférencement du **device

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/libusb_wrapper.c
@@ -137,7 +137,7 @@ void getFirstDeviceFromID(libusb_context *context, int vid, int pid, libusb_devi @@ -137,7 +137,7 @@ void getFirstDeviceFromID(libusb_context *context, int vid, int pid, libusb_devi
137 g_vid = vid; //pass parameters for enumeration 137 g_vid = vid; //pass parameters for enumeration
138 g_pid = pid; //idem 138 g_pid = pid; //idem
139 _enumerateDevices(context, _getFirstDeviceFromID); 139 _enumerateDevices(context, _getFirstDeviceFromID);
140 - device = &g_device; //get return from enumeration 140 + *device = g_device; //get return from enumeration
141 } 141 }
142 142
143 //void getDevicesFromID(vid, pid) //return array 143 //void getDevicesFromID(vid, pid) //return array