forked from Ivasoft/DSView
fix: Can't open the old version device on windows
This commit is contained in:
@@ -371,6 +371,11 @@ static GSList *scan(GSList *options)
|
||||
}
|
||||
|
||||
g_free(firmware);
|
||||
|
||||
libusb_unref_device(device_handle);
|
||||
#ifdef _WIN32
|
||||
libusb_unref_device(device_handle);
|
||||
#endif
|
||||
|
||||
sr_info("Waitting for device reconnect, name:\"%s\"", prof->model);
|
||||
}
|
||||
|
||||
@@ -459,6 +459,11 @@ static GSList *scan(GSList *options)
|
||||
|
||||
free(firmware);
|
||||
|
||||
libusb_unref_device(device_handle);
|
||||
#ifdef _WIN32
|
||||
libusb_unref_device(device_handle);
|
||||
#endif
|
||||
|
||||
sr_info("Waitting for device reconnect, name:\"%s\"", prof->model);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user