VirtualBox

Ignore:
Timestamp:
Oct 1, 2021 1:41:22 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147205
Message:

Host Services: ShCl: VRDP: prevent clipboard operation from stop when guest service reconnects to host, bugref:10115, ticketref:20366.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc.cpp

    r91435 r91513  
    19801980static DECLCALLBACK(int) svcDisconnect(void *, uint32_t u32ClientID, void *pvClient)
    19811981{
    1982     RT_NOREF(u32ClientID);
    1983 
    19841982    LogFunc(("u32ClientID=%RU32\n", u32ClientID));
    19851983
    19861984    PSHCLCLIENT pClient = (PSHCLCLIENT)pvClient;
    19871985    AssertPtr(pClient);
     1986
     1987    /* In order to communicate with guest service, HGCM VRDP clipboard extension
     1988     * needs to know its connection client ID. Currently, in svcConnect() we always
     1989     * cache ID of the first ever connected client. When client disconnects,
     1990     * we need to forget its ID and let svcConnect() to pick up the next ID when a new
     1991     * connection will be requested by guest service (see #10115). */
     1992    if (g_ExtState.uClientID == u32ClientID)
     1993    {
     1994        g_ExtState.uClientID = 0;
     1995    }
    19881996
    19891997#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
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