Changeset 31016 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jul 22, 2010 4:39:23 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r31008 r31016 1864 1864 CHECK_ERROR_RET(aVirtualBox, FindMachine(Bstr(argv[0]), ptrMachine.asOutParam()), 1); 1865 1865 1866 CHECK_ERROR_RET(ptrMachine, LockForSession(aSession, true /* fPermitShared */, NULL), 1); 1866 SessionType_T st; 1867 CHECK_ERROR_RET(ptrMachine, LockForSession(aSession, true /* fPermitShared */, &st), 1); 1867 1868 1868 1869 /* -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r31008 r31016 88 88 89 89 /* open a session for the VM */ 90 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 90 SessionType_T st; 91 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 91 92 92 93 do -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r31008 r31016 286 286 { 287 287 /* open an existing session for VM */ 288 CHECK_ERROR_BREAK(machine, LockForSession(a->session, true /* fPermitShared */, NULL)); 288 SessionType_T st; 289 CHECK_ERROR_BREAK(machine, LockForSession(a->session, true /* fPermitShared */, &st)); 289 290 // @todo r=dj assert that it's an existing session 290 291 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r31008 r31016 88 88 { 89 89 /* open a session for the VM - new or existing */ 90 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 90 SessionType_T st; 91 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 91 92 92 93 /* get the mutable session machine */ … … 153 154 { 154 155 /* open a session for the VM - new or existing */ 155 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 156 SessionType_T st; 157 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 156 158 157 159 /* get the mutable session machine */ … … 213 215 { 214 216 /* open a session for the VM - new or existing */ 215 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 217 SessionType_T st; 218 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 216 219 217 220 /* get the mutable session machine */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r31008 r31016 2135 2135 2136 2136 /* open an existing session for the VM */ 2137 rc = machine->LockForSession(a->session, true /* fPermitShared */, NULL); 2137 SessionType_T st; 2138 rc = machine->LockForSession(a->session, true /* fPermitShared */, &st); 2138 2139 if (SUCCEEDED(rc)) 2139 2140 /* get the session machine */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r31008 r31016 418 418 { 419 419 /* we have to open a session for this task */ 420 CHECK_ERROR_BREAK(machine, LockForSession(a->session, false /* fPermitShared */, NULL)); 420 SessionType_T st; 421 CHECK_ERROR_BREAK(machine, LockForSession(a->session, false /* fPermitShared */, &st)); 421 422 do 422 423 { … … 452 453 { 453 454 /* we have to open a session for this task */ 454 CHECK_ERROR_BREAK(machine, LockForSession(a->session, false /* fPermitShared */, NULL)); 455 SessionType_T st; 456 CHECK_ERROR_BREAK(machine, LockForSession(a->session, false /* fPermitShared */, &st)); 455 457 do 456 458 { … … 726 728 727 729 /* open an existing session for the VM */ 728 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 730 SessionType_T st; 731 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 729 732 /* get the session machine */ 730 733 CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1); … … 740 743 { 741 744 /* open a session for the VM */ 742 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, NULL), 1); 745 SessionType_T st; 746 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, &st), 1); 743 747 744 748 /* get the mutable session machine */ … … 790 794 791 795 /* open an existing session for the VM */ 792 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, NULL), 1); 796 SessionType_T st; 797 CHECK_ERROR_RET(machine, LockForSession(a->session, true /* fPermitShared */, &st), 1); 793 798 /* get the session machine */ 794 799 CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1); … … 804 809 { 805 810 /* open a session for the VM */ 806 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, NULL), 1); 811 SessionType_T st; 812 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, &st), 1); 807 813 808 814 /* get the mutable session machine */ … … 874 880 875 881 /* open an existing session for the VM. */ 876 CHECK_ERROR(machine, LockForSession(a->session, true /* fPermitShared */, NULL)); 882 SessionType_T st; 883 CHECK_ERROR(machine, LockForSession(a->session, true /* fPermitShared */, &st)); 877 884 if (SUCCEEDED(rc)) 878 885 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r31008 r31016 312 312 313 313 /* open a session for the VM */ 314 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, NULL), 1); 314 SessionType_T st; 315 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, &st), 1); 315 316 316 317 /* get the mutable session machine */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp
r31008 r31016 240 240 { 241 241 /* we have to open a session for this task (new or shared) */ 242 rc = pMachine->LockForSession(a->session, true /* fPermitShared */, NULL); 242 SessionType_T st; 243 rc = pMachine->LockForSession(a->session, true /* fPermitShared */, &st); 243 244 ComPtr<IConsole> console; 244 245 CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam())); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r31008 r31016 755 755 756 756 /* open a session for the VM */ 757 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, NULL), 1); 757 SessionType_T st; 758 CHECK_ERROR_RET(machine, LockForSession(a->session, false /* fPermitShared */, &st), 1); 758 759 759 760 /* get the mutable session machine */ -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
r31008 r31016 417 417 { 418 418 /* open a session for the VM */ 419 CHECK_ERROR_RET(cmd.mMachine, LockForSession(a->session, false /* fPermitShared */, NULL), 1); 419 SessionType_T st; 420 CHECK_ERROR_RET(cmd.mMachine, LockForSession(a->session, false /* fPermitShared */, &st), 1); 420 421 /* get the mutable session machine */ 421 422 a->session->COMGETTER(Machine)(cmd.mMachine.asOutParam());
Note:
See TracChangeset
for help on using the changeset viewer.