Changeset 44039 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Dec 5, 2012 12:08:52 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82492
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r42551 r44039 874 874 875 875 Bstr usbId = a->argv[2]; 876 if (Guid(usbId).isEmpty()) 876 877 Guid guid(usbId); 878 if (!guid.isValid()) 877 879 { 878 880 // assume address … … 897 899 CHECK_ERROR_BREAK(dev, COMGETTER(Id)(usbId.asOutParam())); 898 900 } 901 } 902 else if (guid.isZero()) 903 { 904 errorArgument("Zero UUID argument '%s'", a->argv[2]); 905 rc = E_FAIL; 906 break; 899 907 } 900 908 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r44028 r44039 159 159 160 160 /* If it is no UUID, convert the filename to an absolute one. */ 161 if ( id.isEmpty())161 if (!id.isValid()) 162 162 { 163 163 int irc = RTPathAbs(pszFilenameOrUuid, szFilenameAbs, sizeof(szFilenameAbs)); -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r42472 r44039 950 950 // first check if a UUID was supplied 951 951 uuidVM = argv[curArg]; 952 if (uuidVM.isEmpty()) 952 953 if (!uuidVM.isValid()) 953 954 { 954 955 LogFlow(("invalid UUID format, assuming it's a VM name\n")); 955 956 vmName = argv[curArg]; 957 } 958 else if (uuidVM.isZero()) 959 { 960 RTPrintf("Error: UUID argument is zero!\n"); 961 return 1; 956 962 } 957 963 } … … 1417 1423 * Do we have a UUID? 1418 1424 */ 1419 if ( !uuidVM.isEmpty())1425 if (uuidVM.isValid()) 1420 1426 { 1421 1427 rc = pVirtualBox->FindMachine(uuidVM.toUtf16().raw(), pMachine.asOutParam()); … … 1443 1449 goto leave; 1444 1450 } 1445 }1446 else if (uuidVM.isEmpty())1447 {1448 RTPrintf("Error: no machine specified!\n");1449 goto leave;1450 1451 } 1451 1452
Note:
See TracChangeset
for help on using the changeset viewer.