2
0
forked from Ivasoft/DSView

fix: Can't open the old version device on windows

This commit is contained in:
dreamsourcelabTAI
2023-06-21 10:26:39 +08:00
parent b2e40096dc
commit ec46d27eaa
2 changed files with 10 additions and 0 deletions

View File

@@ -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);
}

View File

@@ -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);
}
}