VirtualBox

Ignore:
Timestamp:
Oct 15, 2009 3:45:26 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53546
Message:

ConsoleImplTeleporter.cpp: Restore TeleporterPort if 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImplTeleporter.cpp

    r23801 r23804  
    767767    if (FAILED(hrc))
    768768        return VERR_GENERAL_FAILURE;
     769    ULONG const uPortOrg = uPort;
    769770
    770771    Bstr bstrAddress;
     
    850851    RTTcpServerDestroy(hServer);
    851852
     853    /*
     854     * If we change TeleporterPort above, set it back to it's original
     855     * value before returning.
     856     */
     857    if (uPortOrg != uPort)
     858        pMachine->COMSETTER(TeleporterPort)(uPortOrg);
     859
    852860    return vrc;
    853861}
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