Changeset 4505 in vbox for trunk/src/VBox
- Timestamp:
- Sep 4, 2007 6:00:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r4504 r4505 94 94 char *psz = NULL; 95 95 BSTR str = NULL; 96 ULONG cRamMBs;97 96 unsigned i; 98 97 … … 102 101 #define H() do { if (FAILED(hrc)) { AssertMsgFailed(("hrc=%#x\n", hrc)); STR_FREE(); return VERR_GENERAL_FAILURE; } } while (0) 103 102 104 /* Get necessary objects */ 105 103 /* 104 * Get necessary objects and frequently used parameters. 105 */ 106 106 ComPtr<IVirtualBox> virtualBox; 107 107 hrc = pMachine->COMGETTER(Parent)(virtualBox.asOutParam()); H(); … … 119 119 hrc = pMachine->COMGETTER(Id)(uuid.asOutParam()); H(); 120 120 PCRTUUID pUuid = uuid.raw(); 121 122 ULONG cRamMBs; 123 hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs); H(); 121 124 122 125 … … 136 139 STR_FREE(); 137 140 rc = CFGMR3InsertBytes(pRoot, "UUID", pUuid, sizeof(*pUuid)); RC_CHECK(); 138 hrc = pMachine->COMGETTER(MemorySize)(&cRamMBs); H();139 141 rc = CFGMR3InsertInteger(pRoot, "RamSize", cRamMBs * _1M); RC_CHECK(); 140 142 rc = CFGMR3InsertInteger(pRoot, "TimerMillies", 10); RC_CHECK();
Note:
See TracChangeset
for help on using the changeset viewer.