| 1 | Descriptionscip-debian debian librevisa 0.0.20130812-6 librevisa/patches/allow-zero-usb-devices#Description.: Fix behaviour if no USB devices are present |
| 2 | Authorscip-debian debian librevisa 0.0.20130812-6 librevisa/patches/allow-zero-usb-devices#Author.: Simon Richter <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 | Last-Updatescip-debian debian librevisa 0.0.20130812-6 librevisa/patches/allow-zero-usb-devices#Last-Update.: 2023-12-16 |
| 4 | |
| 5 | --- librevisa-0.0.20130812.orig/src/usb/usb_resource_creator.cppscip-debian debian librevisa 0.0.20130812-6 librevisa/upstream/`librevisa-0.0.20130812.orig/src/usb/usb_resource_creator.cpp`: |
| 6 | +++ librevisa-0.0.20130812/src/usb/usb_resource_creator.cppscip-debian debian librevisa 0.0.20130812-6 librevisa/upstream/`librevisa-0.0.20130812/src/usb/usb_resource_creator.cpp`: |
| 7 | @@ -59,11 +59,15 @@ resource *usb_resource::creator::create( |
| 8 | } |
| 9 | |
| 10 | void usb_resource::creator::find(findlist &list) const |
| 11 | +try |
| 12 | { |
| 13 | create_or_find_args args; |
| 14 | args.find = &list; |
| 15 | create_or_find(FIND, args); |
| 16 | } |
| 17 | +catch(exception &) |
| 18 | +{ |
| 19 | +} |
| 20 | |
| 21 | resource *usb_resource::creator::create_or_find( |
| 22 | create_or_find_mode mode, |