Changeset 31070 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jul 23, 2010 4:00:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64005
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r28800 r31070 416 416 * Aborted which may have unwanted side effects like killing the saved 417 417 * state file (if the machine was in the Saved state before). */ 418 session-> Close();418 session->UnlockMachine(); 419 419 420 420 EventQueue::getMainEventQueue()->processEventQueue(0); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r31019 r31070 881 881 } while (0); 882 882 883 a->session-> Close();883 a->session->UnlockMachine(); 884 884 885 885 return SUCCEEDED(rc) ? 0 : 1; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r31019 r31070 520 520 } 521 521 } 522 a->session-> Close();522 a->session->UnlockMachine(); 523 523 } while (0); 524 524 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r31020 r31070 168 168 CHECK_ERROR(machine, SaveSettings()); 169 169 170 a->session-> Close();170 a->session->UnlockMachine(); 171 171 } 172 172 return SUCCEEDED(rc) ? 0 : 1; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r31019 r31070 2146 2146 2147 2147 if (console) 2148 a->session-> Close();2148 a->session->UnlockMachine(); 2149 2149 } 2150 2150 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r31019 r31070 393 393 394 394 /* it's important to always close sessions */ 395 a->session-> Close();395 a->session->UnlockMachine(); 396 396 397 397 return SUCCEEDED(rc) ? 0 : 1; … … 425 425 CHECK_ERROR_BREAK(console, ForgetSavedState(true)); 426 426 } while (0); 427 CHECK_ERROR_BREAK(a->session, Close());427 CHECK_ERROR_BREAK(a->session, UnlockMachine()); 428 428 } while (0); 429 429 } … … 459 459 CHECK_ERROR_BREAK(console, AdoptSavedState(Bstr(a->argv[1]))); 460 460 } while (0); 461 CHECK_ERROR_BREAK(a->session, Close());461 CHECK_ERROR_BREAK(a->session, UnlockMachine()); 462 462 } while (0); 463 463 } … … 735 735 fWritable, fAutoMount)); 736 736 if (console) 737 a->session-> Close();737 a->session->UnlockMachine(); 738 738 } 739 739 else … … 751 751 CHECK_ERROR(machine, SaveSettings()); 752 752 753 a->session-> Close();753 a->session->UnlockMachine(); 754 754 } 755 755 } … … 800 800 801 801 if (console) 802 a->session-> Close();802 a->session->UnlockMachine(); 803 803 } 804 804 else … … 814 814 /* commit and close the session */ 815 815 CHECK_ERROR(machine, SaveSettings()); 816 a->session-> Close();816 a->session->UnlockMachine(); 817 817 } 818 818 } … … 904 904 } 905 905 } 906 a->session-> Close();906 a->session->UnlockMachine(); 907 907 } 908 908 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r31019 r31070 2048 2048 2049 2049 /* it's important to always close sessions */ 2050 a->session-> Close();2050 a->session->UnlockMachine(); 2051 2051 2052 2052 return SUCCEEDED(rc) ? 0 : 1; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp
r31019 r31070 499 499 } while (0); 500 500 501 a->session-> Close();501 a->session->UnlockMachine(); 502 502 503 503 return SUCCEEDED(rc) ? 0 : 1; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r31019 r31070 636 636 leave: 637 637 /* it's important to always close sessions */ 638 a->session-> Close();638 a->session->UnlockMachine(); 639 639 640 640 return SUCCEEDED(rc) ? 0 : 1; … … 765 765 { 766 766 /* it's important to always close sessions */ 767 a->session-> Close();767 a->session->UnlockMachine(); 768 768 errorSyntax(USAGE_STORAGECONTROLLER, "Storage controller name not specified\n"); 769 769 return 1; … … 954 954 955 955 /* it's important to always close sessions */ 956 a->session-> Close();956 a->session->UnlockMachine(); 957 957 958 958 return SUCCEEDED(rc) ? 0 : 1; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
r31019 r31070 562 562 } 563 563 /* close the session */ 564 a->session-> Close();564 a->session->UnlockMachine(); 565 565 } 566 566
Note:
See TracChangeset
for help on using the changeset viewer.