VirtualBox

Ignore:
Timestamp:
Oct 7, 2019 7:41:06 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133765
Message:

Shared Clipboard/HostService: Make sure to send a quit message to the guest so that it can terminate gracefully.

File:
1 edited

Legend:

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

    r80997 r81133  
    9292 *
    9393 * At the moment a transfer is a all-or-nothing operation, e.g. it either
    94  * completes orfails completely. There might be callbacks in the future
     94 * completes or fails completely. There might be callbacks in the future
    9595 * to e.g. skip failing entries.
    9696 *
     
    11281128    ShClSvcImplDisconnect(pClient);
    11291129
     1130    /* Make sure to send a quit message to the guest so that it can terminate gracefully. */
     1131    if (pClient->Pending.uType)
     1132    {
     1133        if (pClient->Pending.cParms >= 2)
     1134        {
     1135            HGCMSvcSetU32(&pClient->Pending.paParms[0], VBOX_SHCL_HOST_MSG_QUIT);
     1136            HGCMSvcSetU32(&pClient->Pending.paParms[1], 0);
     1137        }
     1138        g_pHelpers->pfnCallComplete(pClient->Pending.hHandle, VINF_SUCCESS);
     1139        pClient->Pending.uType = 0;
     1140    }
     1141
    11301142    shclSvcClientStateReset(&pClient->State);
    11311143    shclSvcClientStateDestroy(&pClient->State);
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