VirtualBox

Changeset 34111 in vbox


Ignore:
Timestamp:
Nov 16, 2010 12:43:09 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67814
Message:

Pass RDP credentials to the guest only from one client, when multiple clients connect concurrently (for VDI).

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r34086 r34111  
    551551    mcVRDPClients = 0;
    552552    mu32SingleRDPClientId = 0;
     553    mcGuestCredentialsProvided = false;
    553554
    554555    // VirtualBox 4.0: We no longer initialize the VMMDev instance here,
     
    10101011        if (SUCCEEDED(hrc) && noLoggedInUsersValue != Bstr("false"))
    10111012        {
    1012             fProvideGuestCredentials = TRUE;
     1013            /* And only if there are no connected clients. */
     1014            if (ASMAtomicCmpXchgBool(&mcGuestCredentialsProvided, true, false))
     1015            {
     1016                fProvideGuestCredentials = TRUE;
     1017            }
    10131018        }
    10141019    }
     
    11221127    updateGuestPropertiesVRDPDisconnect(u32ClientId);
    11231128#endif /* VBOX_WITH_GUEST_PROPS */
     1129
     1130    if (u32Clients == 0)
     1131        mcGuestCredentialsProvided = false;
    11241132
    11251133    LogFlowFuncLeave();
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r34075 r34111  
    560560    volatile uint32_t mcVRDPClients;
    561561    uint32_t mu32SingleRDPClientId; /* The id of a connected client in the single connection mode. */
     562    volatile  bool mcGuestCredentialsProvided;
    562563
    563564    static const char *sSSMConsoleUnit;
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