VirtualBox

Ignore:
Timestamp:
Jul 22, 2010 4:39:23 PM (14 years ago)
Author:
vboxsync
Message:

Main: unbreak frontends broken by r63924

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r31008 r31016  
    18641864        CHECK_ERROR_RET(aVirtualBox, FindMachine(Bstr(argv[0]), ptrMachine.asOutParam()), 1);
    18651865
    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);
    18671868
    18681869    /*
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r31008 r31016  
    8888
    8989    /* 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);
    9192
    9293    do
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r31008 r31016  
    286286        {
    287287            /* 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));
    289290            // @todo r=dj assert that it's an existing session
    290291
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r31008 r31016  
    8888    {
    8989        /* 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);
    9192
    9293        /* get the mutable session machine */
     
    153154    {
    154155        /* 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);
    156158
    157159        /* get the mutable session machine */
     
    213215    {
    214216        /* 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);
    216219
    217220        /* get the mutable session machine */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r31008 r31016  
    21352135
    21362136        /* 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);
    21382139        if (SUCCEEDED(rc))
    21392140            /* get the session machine */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r31008 r31016  
    418418        {
    419419            /* 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));
    421422            do
    422423            {
     
    452453        {
    453454            /* 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));
    455457            do
    456458            {
     
    726728
    727729            /* 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);
    729732            /* get the session machine */
    730733            CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1);
     
    740743        {
    741744            /* 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);
    743747
    744748            /* get the mutable session machine */
     
    790794
    791795            /* 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);
    793798            /* get the session machine */
    794799            CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1);
     
    804809        {
    805810            /* 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);
    807813
    808814            /* get the mutable session machine */
     
    874880
    875881    /* 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));
    877884    if (SUCCEEDED(rc))
    878885    {
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r31008 r31016  
    312312
    313313    /* 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);
    315316
    316317    /* get the mutable session machine */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r31008 r31016  
    240240    {
    241241        /* 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);
    243244        ComPtr<IConsole> console;
    244245        CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam()));
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp

    r31008 r31016  
    755755
    756756    /* 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);
    758759
    759760    /* get the mutable session machine */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r31008 r31016  
    417417    {
    418418        /* 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);
    420421        /* get the mutable session machine */
    421422        a->session->COMGETTER(Machine)(cmd.mMachine.asOutParam());
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette