Changeset 96639 in vbox
- Timestamp:
- Sep 7, 2022 5:52:25 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMNameOSTypePage.cpp
r96638 r96639 269 269 it's XP or similar which is predominantly 32-bit: */ 270 270 if (!strNewName.contains("32") && !strNewName.contains("64") && !strNewName.contains(gs_Prefer32BitNamePatterns)) 271 { 272 /** @todo cache this result, no need to re-query it for each keystroke... */ 273 CHost host = uiCommon().host(); 274 bool fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx); 275 bool fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode); 276 strNewName += ARCH_BITS == 64 && fSupportsHWVirtEx && fSupportsLongMode ? "64" : "32"; 277 } 271 strNewName += ARCH_BITS == 64 ? "64" : "32"; 278 272 279 273 /* Search for a matching OS type based on the string the user typed already. */
Note:
See TracChangeset
for help on using the changeset viewer.

