VirtualBox

Changeset 25010 in vbox


Ignore:
Timestamp:
Nov 26, 2009 2:52:59 PM (15 years ago)
Author:
vboxsync
Message:

Main/XML: do not ever write an empty RemoteDisplay/@port attribute because old vbox versions choke on that; instead write the default port if not specified

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r24989 r25010  
    25352535    xml::ElementNode *pelmVRDP = pelmHardware->createChild("RemoteDisplay");
    25362536    pelmVRDP->setAttribute("enabled", hw.vrdpSettings.fEnabled);
    2537     pelmVRDP->setAttribute("port", hw.vrdpSettings.strPort);
     2537    Utf8Str strPort = hw.vrdpSettings.strPort;
     2538    if (!strPort.length())
     2539        strPort = "3389";
     2540    pelmVRDP->setAttribute("port", strPort);
    25382541    if (hw.vrdpSettings.strNetAddress.length())
    25392542        pelmVRDP->setAttribute("netAddress", hw.vrdpSettings.strNetAddress);
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