VirtualBox

Changeset 59967 in vbox


Ignore:
Timestamp:
Mar 9, 2016 1:47:51 PM (9 years ago)
Author:
vboxsync
Message:

Main/SerialPort: don't trigger assertion for setting up serial port slot 0 and kick out confusing overoptimization

File:
1 edited

Legend:

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

    r59926 r59967  
    621621    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    622622
    623     /* Set some more defaults.
    624      * Note that the default value for COM1 (slot 0) is set in the constructor
    625      * of bd. So slot 0 is correct already. */
     623    /* Set some more defaults. */
    626624    switch (m->bd->ulSlot)
    627625    {
     626        case 0:
     627        {
     628            m->bd->ulIOBase = 0x3f8;
     629            m->bd->ulIRQ = 4;
     630            break;
     631        }
    628632        case 1:
    629633        {
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