VirtualBox

Changeset 86869 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Nov 12, 2020 7:59:52 AM (4 years ago)
Author:
vboxsync
Message:

DnD: Termination fixes / clarification.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/DragAndDrop/VBoxDragAndDropSvc.cpp

    r85749 r86869  
    147147void DragAndDropClient::disconnect(void) RT_NOEXCEPT
    148148{
    149     LogFlowThisFunc(("uClient=%RU32\n", m_idClient));
    150 
     149    LogFlowThisFunc(("uClient=%RU32, fDeferred=%RTbool\n", m_idClient, IsDeferred()));
     150
     151    /*
     152     * If the client still is waiting for a message (i.e in deferred mode),
     153     * complete the call with a VERR_CANCELED status so that the client (VBoxTray / VBoxClient) knows
     154     * it should bail out.
     155     */
    151156    if (IsDeferred())
    152         CompleteDeferred(VERR_INTERRUPTED);
     157        CompleteDeferred(VERR_CANCELLED);
    153158
    154159    /*
     
    471476            break;
    472477    }
    473 
    474 #ifdef DEBUG_andy
    475     LogFlowFunc(("Mode (%RU32) check rc=%Rrc\n", modeGet(), rc));
    476 #endif
    477478
    478479#define DO_HOST_CALLBACK();                                                                   \
     
    10281029    if (rc == VINF_HGCM_ASYNC_EXECUTE)
    10291030    {
     1031        LogFlowFunc(("Deferring client %RU32\n", idClient));
     1032
    10301033        try
    10311034        {
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