VirtualBox

Changeset 66942 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2017 6:07:51 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115474
Message:

Main/Machine: fix parallel port settings loading, which suffers from a difference between settings default and the desired API default (making the 2nd LPT show up with the default port/irq from the settings code).

File:
1 edited

Legend:

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

    r66941 r66942  
    91109110        }
    91119111
    9112         // serial ports
     9112        // serial ports (establish defaults first, to ensure reading the same
     9113        // settings as we saved, since the list skips ports having defaults)
     9114        for (unsigned i = 0; i < RT_ELEMENTS(mSerialPorts); i++)
     9115            mSerialPorts[i]->i_applyDefaults(pGuestOSType);
    91139116        for (settings::SerialPortsList::const_iterator
    91149117             it = data.llSerialPorts.begin();
     
    91239126        }
    91249127
    9125         // parallel ports (optional)
     9128        // parallel ports (establish defaults first, to ensure reading the same
     9129        // settings as we saved, since the list skips ports having defaults)
     9130        for (unsigned i = 0; i < RT_ELEMENTS(mParallelPorts); i++)
     9131            mParallelPorts[i]->i_applyDefaults();
    91269132        for (settings::ParallelPortsList::const_iterator
    91279133             it = data.llParallelPorts.begin();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette