VirtualBox

Changeset 49730 in vbox


Ignore:
Timestamp:
Nov 29, 2013 2:24:18 PM (11 years ago)
Author:
vboxsync
Message:

SerialPortImpl: fixed regression from r90887, com port mode could not be changed.

File:
1 edited

Legend:

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

    r49644 r49730  
    400400    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    401401
    402     com::Utf8Str strPath = aPath;
    403 
    404     /* we treat empty as null when e.g. saving to XML, do the same here */
    405     if (!strPath.isEmpty())
    406         strPath = "";
    407 
    408     if (strPath != m->bd->strPath)
    409     {
    410         HRESULT rc = i_checkSetPath(strPath);
     402    if (aPath != m->bd->strPath)
     403    {
     404        HRESULT rc = i_checkSetPath(aPath);
    411405        if (FAILED(rc)) return rc;
    412406
    413407        m->bd.backup();
    414         m->bd->strPath = strPath;
     408        m->bd->strPath = aPath;
    415409
    416410        m->fModified = true;
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