VirtualBox

Ignore:
Timestamp:
Feb 3, 2014 3:11:24 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: 6713: Fix to r91875: More strict check for 64bit guest OS type support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp

    r50253 r50310  
    3333/* COM includes: */
    3434#include "CSystemProperties.h"
    35 
    36 /* Other VBox includes: */
    37 #include <iprt/system.h>
    3835
    3936/* Defines some patterns to guess the right OS type. Should be in sync with
     
    163160    : m_strGroup(strGroup)
    164161{
     162    CHost host = vboxGlobal().host();
     163    m_fSupportsHWVirtEx = host.GetProcessorFeature(KProcessorFeature_HWVirtEx);
     164    m_fSupportsLongMode = host.GetProcessorFeature(KProcessorFeature_LongMode);
    165165}
    166166
     
    168168{
    169169    /* Do not forget about achitecture bits: */
    170     strNewName += QString::number(ARCH_BITS);
     170    strNewName += m_fSupportsHWVirtEx && m_fSupportsLongMode ? "64" : "32";
    171171
    172172    /* Search for a matching OS type based on the string the user typed already. */
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