Changeset 22595 in vbox
- Timestamp:
- Aug 31, 2009 11:54:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r22173 r22595 200 200 /* no need to lock, this is const */ 201 201 AssertCompile(MM_RAM_MAX_IN_MB <= SchemaDefs::MaxGuestRAM); 202 *maxRAM = MM_RAM_MAX_IN_MB; 202 ULONG maxRAMSys = MM_RAM_MAX_IN_MB; 203 ULONG maxRAMArch = maxRAMSys; 204 #if HC_ARCH_BITS == 32 && !defined(RT_OS_DARWIN) 205 # ifdef RT_OS_WINDOWS 206 maxRAMArch = UINT32_C(1500); 207 # else 208 maxRAMArch = UINT32_C(2560); 209 # endif 210 #endif 211 *maxRAM = RT_MIN(maxRAMSys, maxRAMArch); 203 212 204 213 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.