VirtualBox

Ignore:
Timestamp:
Aug 13, 2020 7:14:45 AM (4 years ago)
Author:
vboxsync
Message:

DnD/Main: Got rid of protocol-guessing via Guest Additions version and pass down the reported (now marked as deprecated) protocol version and guest feature bits to Main.

File:
1 edited

Legend:

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

    r85739 r85740  
    248248
    249249    return GuestDnDBase::i_removeFormats(aFormats);
    250 #endif /* VBOX_WITH_DRAG_AND_DROP */
    251 }
    252 
    253 HRESULT GuestDnDTarget::getProtocolVersion(ULONG *aProtocolVersion)
    254 {
    255 #if !defined(VBOX_WITH_DRAG_AND_DROP)
    256     ReturnComNotImplemented();
    257 #else /* VBOX_WITH_DRAG_AND_DROP */
    258 
    259     AutoCaller autoCaller(this);
    260     if (FAILED(autoCaller.rc())) return autoCaller.rc();
    261 
    262     AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    263 
    264     *aProtocolVersion = m_pResp->m_uProtocolVersion;
    265 
    266     return S_OK;
    267250#endif /* VBOX_WITH_DRAG_AND_DROP */
    268251}
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