VirtualBox

Changeset 101195 in vbox


Ignore:
Timestamp:
Sep 20, 2023 1:13:14 PM (12 months ago)
Author:
vboxsync
Message:

Main: Fixed GuestOSType::i_platformArchitecture(). bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp

    r101188 r101195  
    212212    /* mOSType constant during life time, no need to lock */
    213213    VBOXOSTYPE const osTypePlatformArchitectureMasked = VBOXOSTYPE(mOSType & VBOXOSTYPE_ArchitectureMask);
    214     if (   osTypePlatformArchitectureMasked & VBOXOSTYPE_x86
    215         || osTypePlatformArchitectureMasked & VBOXOSTYPE_x64)
     214    if (   osTypePlatformArchitectureMasked == VBOXOSTYPE_x86
     215        || osTypePlatformArchitectureMasked == VBOXOSTYPE_x64)
    216216        return PlatformArchitecture_x86;
    217     else if (   osTypePlatformArchitectureMasked & VBOXOSTYPE_ARM32
    218              || osTypePlatformArchitectureMasked & VBOXOSTYPE_ARM64)
     217    else if (   osTypePlatformArchitectureMasked == VBOXOSTYPE_ARM32
     218             || osTypePlatformArchitectureMasked == VBOXOSTYPE_ARM64)
    219219        return PlatformArchitecture_ARM;
    220220
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