Changeset 16209 in vbox
- Timestamp:
- Jan 23, 2009 6:48:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r16208 r16209 800 800 } 801 801 802 STDMETHODIMP Appliance::GetDisks 802 STDMETHODIMP Appliance::GetDisks(ComSafeArrayOut(BSTR, aDisks), ULONG *cDisks) 803 803 { 804 804 CheckComArgOutSafeArrayPointerValid(aDisks); … … 852 852 } 853 853 854 STDMETHODIMP Appliance::COMGETTER (VirtualSystemDescriptions)(ComSafeArrayOut(IVirtualSystemDescription*, aVirtualSystemDescriptions))854 STDMETHODIMP Appliance::COMGETTER(VirtualSystemDescriptions)(ComSafeArrayOut(IVirtualSystemDescription*, aVirtualSystemDescriptions)) 855 855 { 856 856 CheckComArgOutSafeArrayPointerValid (aVirtualSystemDescriptions); … … 979 979 // - don't use COM methods but the methods directly (faster, but needs appropriate locking of that objects itself (s. HardDisk2)) 980 980 // - Appropriate handle errors like not supported file formats 981 // - Maybe it is better to replace std::string with Utf8Str's on some places?982 981 983 982 /* Clear any previous virtual system descriptions */ … … 1208 1207 1209 1208 /* RAM */ 1210 ULONG memSizeVBox = vs.ullMemorySize; /** @todo r=bird/MSC: this will overflow at 4GB, use 64-bit type. */1209 uint64_t ullMemSizeVBox = vs.ullMemorySize; /** @todo r=bird/MSC: this will overflow at 4GB, use 64-bit type. */ 1211 1210 if (vs.ullMemorySize == 0) 1212 1211 { 1213 1212 /* If the RAM of the OVF is zero, use our predefined values */ 1214 rc = osType->COMGETTER(RecommendedRAM) (&memSizeVBox); 1213 ULONG memSizeVBox2; 1214 rc = osType->COMGETTER(RecommendedRAM)(&memSizeVBox2); 1215 1215 ComAssertComRCThrowRC (rc); 1216 1216 /* VBox stores that in MByte */ 1217 memSizeVBox *=_1M;1218 } 1219 vsd->addEntry (VirtualSystemDescriptionType_Memory, 0, toString< ULONG> (vs.ullMemorySize), toString<ULONG> (memSizeVBox));1217 ullMemSizeVBox = memSizeVBox2 * _1M; 1218 } 1219 vsd->addEntry (VirtualSystemDescriptionType_Memory, 0, toString<uint64_t> (vs.ullMemorySize), toString<uint64_t> (ullMemSizeVBox)); 1220 1220 1221 1221 /* Hard disk Controller */
Note:
See TracChangeset
for help on using the changeset viewer.