Changeset 97804 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
- Timestamp:
- Dec 14, 2022 9:09:40 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
r96407 r97804 160 160 Bstr mManufacturer; 161 161 Bstr mProduct; 162 Bstr mPort; 162 163 Bstr mRemote; 163 164 Bstr mSerialNumber; … … 302 303 i++; 303 304 cmd.mFilter.mManufacturer = a->argv[i]; 305 } 306 else if (!strcmp(a->argv[i], "--port")) 307 { 308 if (a->argc <= i + 1) 309 return errorArgument(Usb::tr("Missing argument to '%s'"), a->argv[i]); 310 i++; 311 cmd.mFilter.mPort = a->argv[i]; 304 312 } 305 313 else if ( !strcmp(a->argv[i], "--product") … … 447 455 if (!f.mManufacturer.isEmpty()) 448 456 CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw())); 457 if (!f.mPort.isEmpty()) 458 CHECK_ERROR_BREAK(flt, COMSETTER(Port)(f.mPort.raw())); 449 459 if (!f.mSerialNumber.isEmpty()) 450 460 CHECK_ERROR_BREAK(flt, COMSETTER(SerialNumber)(f.mSerialNumber.raw())); … … 473 483 if (!f.mManufacturer.isEmpty()) 474 484 CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw())); 485 if (!f.mPort.isEmpty()) 486 CHECK_ERROR_BREAK(flt, COMSETTER(Port)(f.mPort.raw())); 475 487 if (!f.mRemote.isEmpty()) 476 488 CHECK_ERROR_BREAK(flt, COMSETTER(Remote)(f.mRemote.raw())); … … 505 517 if (!f.mManufacturer.isEmpty()) 506 518 CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw())); 519 if (!f.mPort.isEmpty()) 520 CHECK_ERROR_BREAK(flt, COMSETTER(Port)(f.mPort.raw())); 507 521 if (!f.mSerialNumber.isEmpty()) 508 522 CHECK_ERROR_BREAK(flt, COMSETTER(SerialNumber)(f.mSerialNumber.raw())); … … 532 546 if (!f.mManufacturer.isEmpty()) 533 547 CHECK_ERROR_BREAK(flt, COMSETTER(Manufacturer)(f.mManufacturer.raw())); 548 if (!f.mPort.isEmpty()) 549 CHECK_ERROR_BREAK(flt, COMSETTER(Port)(f.mPort.raw())); 534 550 if (!f.mRemote.isEmpty()) 535 551 CHECK_ERROR_BREAK(flt, COMSETTER(Remote)(f.mRemote.raw()));
Note:
See TracChangeset
for help on using the changeset viewer.