VirtualBox

Changeset 85741 in vbox for trunk/src/VBox/Main/src-client


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

Reverted r139888 to change commit message.

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r85740 r85741  
    250250
    251251    return GuestDnDBase::i_removeFormats(aFormats);
     252#endif /* VBOX_WITH_DRAG_AND_DROP */
     253}
     254
     255HRESULT GuestDnDSource::getProtocolVersion(ULONG *aProtocolVersion)
     256{
     257#if !defined(VBOX_WITH_DRAG_AND_DROP)
     258    ReturnComNotImplemented();
     259#else /* VBOX_WITH_DRAG_AND_DROP */
     260
     261    AutoCaller autoCaller(this);
     262    if (FAILED(autoCaller.rc())) return autoCaller.rc();
     263
     264    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
     265
     266    *aProtocolVersion = m_pResp->m_uProtocolVersion;
     267
     268    return S_OK;
    252269#endif /* VBOX_WITH_DRAG_AND_DROP */
    253270}
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r85740 r85741  
    248248
    249249    return GuestDnDBase::i_removeFormats(aFormats);
     250#endif /* VBOX_WITH_DRAG_AND_DROP */
     251}
     252
     253HRESULT 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;
    250267#endif /* VBOX_WITH_DRAG_AND_DROP */
    251268}
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