VirtualBox

Changeset 73941 in vbox for trunk


Ignore:
Timestamp:
Aug 29, 2018 8:56:02 AM (6 years ago)
Author:
vboxsync
Message:

DnD/Main: Fixed including the context ID when using protocol v3 with HOST_DND_HG_EVT_LEAVE and HOST_DND_HG_EVT_CANCEL.

File:
1 edited

Legend:

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

    r73940 r73941  
    432432
    433433    HRESULT hr = S_OK;
    434     int rc = GuestDnDInst()->hostCall(HOST_DND_HG_EVT_LEAVE,
    435                                       0 /* cParms */, NULL /* paParms */);
     434
     435    GuestDnDMsg Msg;
     436    Msg.setType(HOST_DND_HG_EVT_LEAVE);
     437    if (mDataBase.m_uProtocolVersion >= 3)
     438        Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
     439
     440    int rc = GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    436441    if (RT_SUCCESS(rc))
    437442    {
     
    693698
    694699    LogFlowFunc(("Cancelling operation, telling guest ...\n"));
    695     return GuestDnDInst()->hostCall(HOST_DND_HG_EVT_CANCEL, 0 /* cParms */, NULL /*paParms*/);
     700
     701    GuestDnDMsg Msg;
     702    Msg.setType(HOST_DND_HG_EVT_CANCEL);
     703    if (mDataBase.m_uProtocolVersion >= 3)
     704        Msg.setNextUInt32(0); /** @todo ContextID not used yet. */
     705
     706    return GuestDnDInst()->hostCall(Msg.getType(), Msg.getCount(), Msg.getParms());
    696707}
    697708
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