VirtualBox

Changeset 80563 in vbox for trunk/src


Ignore:
Timestamp:
Sep 3, 2019 9:59:30 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/URI: Build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedClipboard/VBoxSharedClipboardSvc-win.cpp

    r80562 r80563  
    778778    LogFlowFunc(("uFormats=0x%x, hWnd=%p\n", pFormats->uFormats, pCtx->Win.hWnd));
    779779
    780     if (!(pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST))
    781     {
     780#ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
     781    if (pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST)
     782    {
     783        PSHAREDCLIPBOARDURITRANSFER pTransfer;
     784        rc = vboxSvcClipboardURITransferStart(pClient,
     785                                              SHAREDCLIPBOARDURITRANSFERDIR_READ, SHAREDCLIPBOARDSOURCE_REMOTE,
     786                                              &pTransfer);
     787        if (RT_SUCCESS(rc))
     788        {
     789            /* Create the IDataObject implementation the host OS needs and assign
     790             * the newly created transfer to this object. */
     791            rc = VBoxClipboardWinURITransferCreate(&pCtx->Win, pTransfer);
     792
     793            /*  Note: The actual requesting + retrieving of data will be done in the IDataObject implementation
     794                      (ClipboardDataObjectImpl::GetData()). */
     795        }
     796    }
     797    else
     798    {
     799#endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */
     800
    782801        /*
    783802         * The guest announced formats. Forward to the window thread.
     
    787806
    788807        rc = VINF_SUCCESS;
    789     }
     808
    790809#ifdef VBOX_WITH_SHARED_CLIPBOARD_URI_LIST
    791     else if (pFormats->uFormats & VBOX_SHARED_CLIPBOARD_FMT_URI_LIST)
    792     {
    793         PSHAREDCLIPBOARDURITRANSFER pTransfer;
    794         rc = vboxSvcClipboardURITransferStart(pClient,
    795                                               SHAREDCLIPBOARDURITRANSFERDIR_READ, SHAREDCLIPBOARDSOURCE_REMOTE,
    796                                               &pTransfer);
    797         if (RT_SUCCESS(rc))
    798         {
    799             /* Create the IDataObject implementation the host OS needs and assign
    800              * the newly created transfer to this object. */
    801             rc = VBoxClipboardWinURITransferCreate(&pCtx->Win, pTransfer);
    802 
    803             /*  Note: The actual requesting + retrieving of data will be done in the IDataObject implementation
    804                       (ClipboardDataObjectImpl::GetData()). */
    805         }
    806     }
    807 #endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */
     810    }
     811
    808812    else
    809813        rc = VERR_NOT_SUPPORTED;
     814#endif /* VBOX_WITH_SHARED_CLIPBOARD_URI_LIST */
    810815
    811816    LogFlowFuncLeaveRC(rc);
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