VirtualBox

Ignore:
Timestamp:
Jul 6, 2023 2:08:30 PM (17 months ago)
Author:
vboxsync
Message:

Shared Clipboard: Windows host service now uses the same way as the Linux host service wrt transfer handling. ​​​bugref:9437

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxClipboard.cpp

    r100407 r100412  
    206206    switch(ShClTransferGetDir(pCbCtx->pTransfer))
    207207    {
    208         case SHCLTRANSFERDIR_FROM_REMOTE:
    209         {
    210             AssertPtrBreak(pCtx->Win.pDataObjInFlight);
    211             rc = pCtx->Win.pDataObjInFlight->SetTransfer(pCbCtx->pTransfer);
    212             if (RT_SUCCESS(rc))
    213                 rc = pCtx->Win.pDataObjInFlight->SetStatus(SharedClipboardWinDataObject::Running);
     208        case SHCLTRANSFERDIR_TO_REMOTE: /* G->H */
     209        {
     210            rc = SharedClipboardWinTransferGetRootsFromClipboard(&pCtx->Win, pCbCtx->pTransfer);
     211            break;
     212        }
     213
     214        case SHCLTRANSFERDIR_FROM_REMOTE: /* H->G */
     215        {
     216            SharedClipboardWinDataObject *pObj = pCtx->Win.pDataObjInFlight;
     217            if (pObj)
     218            {
     219                rc = pObj->SetTransfer(pCbCtx->pTransfer);
     220                if (RT_SUCCESS(rc))
     221                    rc = pObj->SetStatus(SharedClipboardWinDataObject::Running);
     222
     223                pCtx->Win.pDataObjInFlight = NULL; /* Hand off to Windows. */
     224            }
     225            else
     226                AssertMsgFailed(("No data object in flight!\n"));
     227
    214228            break;
    215229        }
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