VirtualBox

Ignore:
Timestamp:
Jan 18, 2019 1:17:20 PM (6 years ago)
Author:
vboxsync
Message:

DnD: Renamed HOST_DND_HG_EVT_CANCEL -> HOST_DND_HG_CANCEL, fixes for host-side cancellation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r76553 r76891  
    652652        {
    653653            delete pTask;
    654             LogRel2(("DnD: Could not create SendDataTask object \n"));
     654            LogRel2(("DnD: Could not create SendDataTask object\n"));
    655655            throw hr = E_FAIL;
    656656        }
     
    686686    return hr;
    687687#endif /* VBOX_WITH_DRAG_AND_DROP */
    688 }
    689 
    690 int GuestDnDTarget::i_cancelOperation(void)
    691 {
    692     /** @todo Check for pending cancel requests. */
    693 
    694 #if 0 /** @todo Later. */
    695     /* Cancel any outstanding waits for guest responses first. */
    696     if (pResp)
    697         pResp->notifyAboutGuestResponse();
    698 #endif
    699 
    700     LogFlowFunc(("Cancelling operation, telling guest ...\n"));
    701 
    702     GuestDnDMsg Msg;
    703     Msg.setType(HOST_DND_HG_EVT_CANCEL);
    704     if (mDataBase.m_uProtocolVersion >= 3)
    705         Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
    706 
    707     return GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    708688}
    709689
     
    15531533#else /* VBOX_WITH_DRAG_AND_DROP */
    15541534
    1555     int rc = i_cancelOperation();
     1535    int rc = GuestDnDBase::sendCancel();
    15561536
    15571537    if (aVeto)
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