VirtualBox

Changeset 4505 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 4, 2007 6:00:36 AM (17 years ago)
Author:
vboxsync
Message:

Moved the memorysize query up with the uuid one.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r4504 r4505  
    9494    char           *psz = NULL;
    9595    BSTR            str = NULL;
    96     ULONG           cRamMBs;
    9796    unsigned        i;
    9897
     
    102101#define H()         do { if (FAILED(hrc)) { AssertMsgFailed(("hrc=%#x\n", hrc)); STR_FREE(); return VERR_GENERAL_FAILURE; } } while (0)
    103102
    104     /* Get necessary objects */
    105 
     103    /*
     104     * Get necessary objects and frequently used parameters.
     105     */
    106106    ComPtr<IVirtualBox> virtualBox;
    107107    hrc = pMachine->COMGETTER(Parent)(virtualBox.asOutParam());                     H();
     
    119119    hrc = pMachine->COMGETTER(Id)(uuid.asOutParam());                               H();
    120120    PCRTUUID pUuid = uuid.raw();
     121
     122    ULONG cRamMBs;
     123    hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs);                                H();
    121124
    122125
     
    136139    STR_FREE();
    137140    rc = CFGMR3InsertBytes(pRoot,   "UUID", pUuid, sizeof(*pUuid));                 RC_CHECK();
    138     hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs);                                H();
    139141    rc = CFGMR3InsertInteger(pRoot, "RamSize",              cRamMBs * _1M);         RC_CHECK();
    140142    rc = CFGMR3InsertInteger(pRoot, "TimerMillies",         10);                    RC_CHECK();
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