Changeset 28870 in vbox for trunk/src/VBox
- Timestamp:
- Apr 28, 2010 2:33:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp
r28800 r28870 421 421 { 422 422 /* assume it's a UUID */ 423 Bstr guidSnap(a->argv[2]); 424 if (!guidSnap.isEmpty()) 425 { 426 CHECK_ERROR_BREAK(pMachine, GetSnapshot(guidSnap, snapshot.asOutParam())); 427 } 428 else 423 rc = pMachine->GetSnapshot(Bstr(a->argv[2]), snapshot.asOutParam()); 424 if (FAILED(rc) || !snapshot) 429 425 { 430 426 /* then it must be a name */ … … 484 480 485 481 /* assume it's a UUID */ 486 Bstr guidSnap(a->argv[2]); 487 if (!guidSnap.isEmpty()) 488 { 489 CHECK_ERROR_BREAK(pMachine, GetSnapshot(guidSnap, snapshot.asOutParam())); 490 } 491 else 482 rc = pMachine->GetSnapshot(Bstr(a->argv[2]), snapshot.asOutParam()); 483 if (FAILED(rc) || !snapshot) 492 484 { 493 485 /* then it must be a name */
Note:
See TracChangeset
for help on using the changeset viewer.