VirtualBox

Changeset 28211 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 12, 2010 2:53:30 PM (15 years ago)
Author:
vboxsync
Message:

cleanup

File:
1 edited

Legend:

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

    r28192 r28211  
    19111911    /* try to find the given machine */
    19121912    ComPtr <IMachine> machine;
    1913     Bstr uuid (VMNameOrUuid);
    1914     if (!Guid (VMNameOrUuid).isEmpty())
    1915     {
    1916         CHECK_ERROR (a->virtualBox, GetMachine (uuid, machine.asOutParam()));
    1917     }
    1918     else
    1919     {
    1920         CHECK_ERROR (a->virtualBox, FindMachine (Bstr(VMNameOrUuid), machine.asOutParam()));
    1921         if (SUCCEEDED (rc))
    1922             machine->COMGETTER(Id) (uuid.asOutParam());
    1923     }
    1924     if (FAILED (rc))
     1913    Bstr uuid(VMNameOrUuid);
     1914    if (!Guid(VMNameOrUuid).isEmpty())
     1915    {
     1916        CHECK_ERROR(a->virtualBox, GetMachine(uuid, machine.asOutParam()));
     1917    }
     1918    else
     1919    {
     1920        CHECK_ERROR(a->virtualBox, FindMachine(Bstr(VMNameOrUuid), machine.asOutParam()));
     1921        if (SUCCEEDED(rc))
     1922            machine->COMGETTER(Id)(uuid.asOutParam());
     1923    }
     1924    if (FAILED(rc))
    19251925        return 1;
    19261926
     
    19321932    {
    19331933        ULONG64 uOffset = 0;
    1934         Bstr uuid;
    19351934        SafeArray<BYTE> aLogData;
    19361935        ULONG cbLogData;
     
    19771976
    19781977        /* open an existing session for the VM */
    1979         rc = a->virtualBox->OpenExistingSession (a->session, uuid);
     1978        rc = a->virtualBox->OpenExistingSession(a->session, uuid);
    19801979        if (SUCCEEDED(rc))
    19811980            /* get the session machine */
     
    19911990    }
    19921991
    1993     return SUCCEEDED (rc) ? 0 : 1;
     1992    return SUCCEEDED(rc) ? 0 : 1;
    19941993}
    19951994
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