VirtualBox

Changeset 107017 in vbox


Ignore:
Timestamp:
Nov 15, 2024 3:07:41 PM (2 months ago)
Author:
vboxsync
Message:

Main: Expose different parallel port counts in PlatformProperties::getParallelPortCount(). ​bugref:10384

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/PlatformPropertiesImpl.cpp

    r106384 r107017  
    174174HRESULT PlatformProperties::getParallelPortCount(ULONG *count)
    175175{
    176     /* no need to lock, this is const */
    177     *count = SchemaDefs::ParallelPortCount;
     176    switch (mPlatformArchitecture)
     177    {
     178        case PlatformArchitecture_x86:
     179        {
     180            /* no need to lock, this is const */
     181            *count = SchemaDefs::ParallelPortCount;
     182            break;
     183        }
     184
     185        case PlatformArchitecture_ARM:
     186        default:
     187        {
     188            *count = 0; /* Not supported. */
     189            break;
     190        }
     191    }
    178192
    179193    return S_OK;
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